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

View Source

V2HPAScalingPolicy()

Declaration
public V2HPAScalingPolicy()
View Source

V2HPAScalingPolicy(V2HPAScalingPolicy)

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

Properties

View Source

EqualityContract

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

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

Type

type is used to specify the scaling policy.

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

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

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

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

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

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>
  • View Source
In this article
Back to top Generated by DocFX