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
View Source
V2ContainerResourceMetricSource()
Declaration
public V2ContainerResourceMetricSource()
View Source
V2ContainerResourceMetricSource(V2ContainerResourceMetricSource)
Declaration
protected V2ContainerResourceMetricSource(V2ContainerResourceMetricSource original)
Parameters
Properties
View Source
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
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Name
name is the name of the resource in question.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
View Source
Target
target specifies the target value for the given metric
Declaration
[JsonPropertyName("target")]
public V2MetricTarget Target { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V2ContainerResourceMetricSource?)
Declaration
public virtual bool Equals(V2ContainerResourceMetricSource? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V2ContainerResourceMetricSource?, V2ContainerResourceMetricSource?)
Declaration
public static bool operator ==(V2ContainerResourceMetricSource? left, V2ContainerResourceMetricSource? right)
Parameters
Returns
View Source
operator !=(V2ContainerResourceMetricSource?, V2ContainerResourceMetricSource?)
Declaration
public static bool operator !=(V2ContainerResourceMetricSource? left, V2ContainerResourceMetricSource? right)
Parameters
Returns
Implements