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
View Source
V2ResourceMetricSource()
Declaration
public V2ResourceMetricSource()
View Source
V2ResourceMetricSource(V2ResourceMetricSource)
Declaration
protected V2ResourceMetricSource(V2ResourceMetricSource original)
Parameters
Properties
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(V2ResourceMetricSource?)
Declaration
public virtual bool Equals(V2ResourceMetricSource? 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 ==(V2ResourceMetricSource?, V2ResourceMetricSource?)
Declaration
public static bool operator ==(V2ResourceMetricSource? left, V2ResourceMetricSource? right)
Parameters
Returns
View Source
operator !=(V2ResourceMetricSource?, V2ResourceMetricSource?)
Declaration
public static bool operator !=(V2ResourceMetricSource? left, V2ResourceMetricSource? right)
Parameters
Returns
Implements