Class V2ResourceMetricSource
ResourceMetricSource indicates how to scale on a resource metric known to
Kubernetes, as specified in requests and limits, describing each pod in the
current scale target (e.g. CPU or memory). The values will be averaged together
before being compared to the target. Such metrics are built in to Kubernetes,
and have special scaling options on top of those available to normal per-pod
metrics using the "pods" source. Only one "target" type should be set.
Inheritance
V2ResourceMetricSource
Assembly: KubernetesClient.dll
Syntax
public record V2ResourceMetricSource : IEquatable<V2ResourceMetricSource>
Constructors
V2ResourceMetricSource()
Declaration
public V2ResourceMetricSource()
V2ResourceMetricSource(V2ResourceMetricSource)
Declaration
protected V2ResourceMetricSource(V2ResourceMetricSource original)
Parameters
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Name
name is the name of the resource in question.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Target
target specifies the target value for the given metric
Declaration
[JsonPropertyName("target")]
public V2MetricTarget Target { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V2ResourceMetricSource?)
Declaration
public virtual bool Equals(V2ResourceMetricSource? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V2ResourceMetricSource?, V2ResourceMetricSource?)
Declaration
public static bool operator ==(V2ResourceMetricSource? left, V2ResourceMetricSource? right)
Parameters
Returns
operator !=(V2ResourceMetricSource?, V2ResourceMetricSource?)
Declaration
public static bool operator !=(V2ResourceMetricSource? left, V2ResourceMetricSource? right)
Parameters
Returns
Implements