Show / Hide Table of Contents

Class V2MetricTarget

MetricTarget defines the target value, average value, or average utilization of a specific metric

Inheritance
object
V2MetricTarget
Implements
IEquatable<V2MetricTarget>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V2MetricTarget : IEquatable<V2MetricTarget>

Constructors

View Source

V2MetricTarget()

Declaration
public V2MetricTarget()
View Source

V2MetricTarget(V2MetricTarget)

Declaration
protected V2MetricTarget(V2MetricTarget original)
Parameters
Type Name Description
V2MetricTarget original

Properties

View Source

AverageUtilization

averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type

Declaration
[JsonPropertyName("averageUtilization")]
public int? AverageUtilization { get; set; }
Property Value
Type Description
int?
View Source

AverageValue

averageValue is the target value of the average of the metric across all relevant pods (as a quantity)

Declaration
[JsonPropertyName("averageValue")]
public ResourceQuantity AverageValue { get; set; }
Property Value
Type Description
ResourceQuantity
View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

Type

type represents whether the metric type is Utilization, Value, or AverageValue

Declaration
[JsonPropertyName("type")]
public string Type { get; set; }
Property Value
Type Description
string
View Source

Value

value is the target value of the metric (as a quantity).

Declaration
[JsonPropertyName("value")]
public ResourceQuantity Value { get; set; }
Property Value
Type Description
ResourceQuantity

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V2MetricTarget?)

Declaration
public virtual bool Equals(V2MetricTarget? other)
Parameters
Type Name Description
V2MetricTarget other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V2MetricTarget?, V2MetricTarget?)

Declaration
public static bool operator ==(V2MetricTarget? left, V2MetricTarget? right)
Parameters
Type Name Description
V2MetricTarget left
V2MetricTarget right
Returns
Type Description
bool
View Source

operator !=(V2MetricTarget?, V2MetricTarget?)

Declaration
public static bool operator !=(V2MetricTarget? left, V2MetricTarget? right)
Parameters
Type Name Description
V2MetricTarget left
V2MetricTarget right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX