Package org.cdk8s.plus24.k8s
Class HorizontalPodAutoscalerSpecV2Beta1.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.k8s.HorizontalPodAutoscalerSpecV2Beta1.Jsii$Proxy
-
- All Implemented Interfaces:
HorizontalPodAutoscalerSpecV2Beta1
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- HorizontalPodAutoscalerSpecV2Beta1
@Stability(Stable) @Internal public static final class HorizontalPodAutoscalerSpecV2Beta1.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HorizontalPodAutoscalerSpecV2Beta1
An implementation forHorizontalPodAutoscalerSpecV2Beta1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.k8s.HorizontalPodAutoscalerSpecV2Beta1
HorizontalPodAutoscalerSpecV2Beta1.Builder, HorizontalPodAutoscalerSpecV2Beta1.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(HorizontalPodAutoscalerSpecV2Beta1.Builder builder)
Constructor that initializes the object based on literal property values passed by theHorizontalPodAutoscalerSpecV2Beta1.Builder
.protected
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
$jsii$toJson()
boolean
equals(Object o)
Number
getMaxReplicas()
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.List<MetricSpecV2Beta1>
getMetrics()
metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).Number
getMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.CrossVersionObjectReferenceV2Beta1
getScaleTargetRef()
scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.int
hashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(HorizontalPodAutoscalerSpecV2Beta1.Builder builder)
Constructor that initializes the object based on literal property values passed by theHorizontalPodAutoscalerSpecV2Beta1.Builder
.
-
-
Method Detail
-
getMaxReplicas
public final Number getMaxReplicas()
Description copied from interface:HorizontalPodAutoscalerSpecV2Beta1
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.It cannot be less that minReplicas.
- Specified by:
getMaxReplicas
in interfaceHorizontalPodAutoscalerSpecV2Beta1
-
getScaleTargetRef
public final CrossVersionObjectReferenceV2Beta1 getScaleTargetRef()
Description copied from interface:HorizontalPodAutoscalerSpecV2Beta1
scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.- Specified by:
getScaleTargetRef
in interfaceHorizontalPodAutoscalerSpecV2Beta1
-
getMetrics
public final List<MetricSpecV2Beta1> getMetrics()
Description copied from interface:HorizontalPodAutoscalerSpecV2Beta1
metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.
- Specified by:
getMetrics
in interfaceHorizontalPodAutoscalerSpecV2Beta1
-
getMinReplicas
public final Number getMinReplicas()
Description copied from interface:HorizontalPodAutoscalerSpecV2Beta1
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.
- Specified by:
getMinReplicas
in interfaceHorizontalPodAutoscalerSpecV2Beta1
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-