Show / Hide Table of Contents

Class V2HPAScalingPolicy

HPAScalingPolicy is a single policy which must hold true for a specified past interval.

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

Constructors

V2HPAScalingPolicy()

Declaration
public V2HPAScalingPolicy()

V2HPAScalingPolicy(V2HPAScalingPolicy)

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

Properties

EqualityContract

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

PeriodSeconds

periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).

Declaration
[JsonPropertyName("periodSeconds")]
public int PeriodSeconds { get; set; }
Property Value
Type Description
int

Type

type is used to specify the scaling policy.

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

Value

value contains the amount of change which is permitted by the policy. It must be greater than zero

Declaration
[JsonPropertyName("value")]
public int Value { get; set; }
Property Value
Type Description
int

Methods

Equals(object?)

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

Equals(V2HPAScalingPolicy?)

Declaration
public virtual bool Equals(V2HPAScalingPolicy? other)
Parameters
Type Name Description
V2HPAScalingPolicy other
Returns
Type Description
bool

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

operator ==(V2HPAScalingPolicy?, V2HPAScalingPolicy?)

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

operator !=(V2HPAScalingPolicy?, V2HPAScalingPolicy?)

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

Implements

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