Class V2MetricStatus
MetricStatus describes the last-read state of a single metric.
Inheritance
V2MetricStatus
Assembly: KubernetesClient.dll
Syntax
public record V2MetricStatus : IEquatable<V2MetricStatus>
Constructors
View Source
V2MetricStatus()
Declaration
View Source
V2MetricStatus(V2MetricStatus)
Declaration
protected V2MetricStatus(V2MetricStatus original)
Parameters
Properties
View Source
ContainerResource
container resource refers to a resource metric (such as those specified in
requests and limits) known to Kubernetes describing a single container in each
pod in the current scale target (e.g. CPU or memory). 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.
Declaration
[JsonPropertyName("containerResource")]
public V2ContainerResourceMetricStatus ContainerResource { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
External
external refers to a global metric that is not associated with any Kubernetes
object. It allows autoscaling based on information coming from components
running outside of cluster (for example length of queue in cloud messaging
service, or QPS from loadbalancer running outside of cluster).
Declaration
[JsonPropertyName("external")]
public V2ExternalMetricStatus External { get; set; }
Property Value
View Source
ObjectProperty
object refers to a metric describing a single kubernetes object (for example,
hits-per-second on an Ingress object).
Declaration
[JsonPropertyName("object")]
public V2ObjectMetricStatus ObjectProperty { get; set; }
Property Value
View Source
Pods
pods refers to a metric describing each pod in the current scale target (for
example, transactions-processed-per-second). The values will be averaged
together before being compared to the target value.
Declaration
[JsonPropertyName("pods")]
public V2PodsMetricStatus Pods { get; set; }
Property Value
View Source
Resource
resource refers to a resource metric (such as those specified in requests and
limits) known to Kubernetes describing each pod in the current scale target
(e.g. CPU or memory). 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.
Declaration
[JsonPropertyName("resource")]
public V2ResourceMetricStatus Resource { get; set; }
Property Value
View Source
Type
type is the type of metric source. It will be one of "ContainerResource",
"External", "Object", "Pods" or "Resource", each corresponds to a matching field
in the object.
Declaration
[JsonPropertyName("type")]
public string Type { 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(V2MetricStatus?)
Declaration
public virtual bool Equals(V2MetricStatus? 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 ==(V2MetricStatus?, V2MetricStatus?)
Declaration
public static bool operator ==(V2MetricStatus? left, V2MetricStatus? right)
Parameters
Returns
View Source
operator !=(V2MetricStatus?, V2MetricStatus?)
Declaration
public static bool operator !=(V2MetricStatus? left, V2MetricStatus? right)
Parameters
Returns
Implements