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

V2MetricTarget()

Declaration
public V2MetricTarget()

V2MetricTarget(V2MetricTarget)

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

Properties

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?

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

EqualityContract

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

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

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

Equals(object?)

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

Equals(V2MetricTarget?)

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

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

operator ==(V2MetricTarget?, V2MetricTarget?)

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

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>
In this article
Back to top Generated by DocFX