Show / Hide Table of Contents

Class V2ContainerResourceMetricStatus

ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, 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.

Inheritance
object
V2ContainerResourceMetricStatus
Implements
IEquatable<V2ContainerResourceMetricStatus>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V2ContainerResourceMetricStatus : IEquatable<V2ContainerResourceMetricStatus>

Constructors

View Source

V2ContainerResourceMetricStatus()

Declaration
public V2ContainerResourceMetricStatus()
View Source

V2ContainerResourceMetricStatus(V2ContainerResourceMetricStatus)

Declaration
protected V2ContainerResourceMetricStatus(V2ContainerResourceMetricStatus original)
Parameters
Type Name Description
V2ContainerResourceMetricStatus original

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
Type Description
string
View Source

Current

current contains the current value for the given metric

Declaration
[JsonPropertyName("current")]
public V2MetricValueStatus Current { get; set; }
Property Value
Type Description
V2MetricValueStatus
View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

Name

name is the name of the resource in question.

Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type Description
string

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V2ContainerResourceMetricStatus?)

Declaration
public virtual bool Equals(V2ContainerResourceMetricStatus? other)
Parameters
Type Name Description
V2ContainerResourceMetricStatus other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V2ContainerResourceMetricStatus?, V2ContainerResourceMetricStatus?)

Declaration
public static bool operator ==(V2ContainerResourceMetricStatus? left, V2ContainerResourceMetricStatus? right)
Parameters
Type Name Description
V2ContainerResourceMetricStatus left
V2ContainerResourceMetricStatus right
Returns
Type Description
bool
View Source

operator !=(V2ContainerResourceMetricStatus?, V2ContainerResourceMetricStatus?)

Declaration
public static bool operator !=(V2ContainerResourceMetricStatus? left, V2ContainerResourceMetricStatus? right)
Parameters
Type Name Description
V2ContainerResourceMetricStatus left
V2ContainerResourceMetricStatus right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX