Class V2ContainerResourceMetricSource
ContainerResourceMetricSource 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
V2ContainerResourceMetricSource
Assembly: KubernetesClient.dll
Syntax
public record V2ContainerResourceMetricSource : IEquatable<V2ContainerResourceMetricSource>
Constructors
V2ContainerResourceMetricSource()
Declaration
public V2ContainerResourceMetricSource()
V2ContainerResourceMetricSource(V2ContainerResourceMetricSource)
Declaration
protected V2ContainerResourceMetricSource(V2ContainerResourceMetricSource original)
Parameters
Properties
Container
container is the name of the container in the pods of the scaling target
Declaration
[JsonPropertyName("container")]
public string Container { get; set; }
Property Value
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(V2ContainerResourceMetricSource?)
Declaration
public virtual bool Equals(V2ContainerResourceMetricSource? 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 ==(V2ContainerResourceMetricSource?, V2ContainerResourceMetricSource?)
Declaration
public static bool operator ==(V2ContainerResourceMetricSource? left, V2ContainerResourceMetricSource? right)
Parameters
Returns
operator !=(V2ContainerResourceMetricSource?, V2ContainerResourceMetricSource?)
Declaration
public static bool operator !=(V2ContainerResourceMetricSource? left, V2ContainerResourceMetricSource? right)
Parameters
Returns
Implements