Show / Hide Table of Contents

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
object
V2ResourceMetricSource
Implements
IEquatable<V2ResourceMetricSource>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
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
Type Name Description
V2ResourceMetricSource original

Properties

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
View Source

Target

target specifies the target value for the given metric

Declaration
[JsonPropertyName("target")]
public V2MetricTarget Target { get; set; }
Property Value
Type Description
V2MetricTarget

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(V2ResourceMetricSource?)

Declaration
public virtual bool Equals(V2ResourceMetricSource? other)
Parameters
Type Name Description
V2ResourceMetricSource 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 ==(V2ResourceMetricSource?, V2ResourceMetricSource?)

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

operator !=(V2ResourceMetricSource?, V2ResourceMetricSource?)

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

Implements

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