Class HorizontalPodAutoscalerSpecV2.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus25.k8s.HorizontalPodAutoscalerSpecV2.Jsii$Proxy
-
- All Implemented Interfaces:
HorizontalPodAutoscalerSpecV2,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- HorizontalPodAutoscalerSpecV2
@Stability(Stable) @Internal public static final class HorizontalPodAutoscalerSpecV2.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HorizontalPodAutoscalerSpecV2
An implementation forHorizontalPodAutoscalerSpecV2
-
-
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.plus25.k8s.HorizontalPodAutoscalerSpecV2
HorizontalPodAutoscalerSpecV2.Builder, HorizontalPodAutoscalerSpecV2.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(HorizontalPodAutoscalerSpecV2.Builder builder)Constructor that initializes the object based on literal property values passed by theHorizontalPodAutoscalerSpecV2.Builder.protectedJsii$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()booleanequals(Object o)HorizontalPodAutoscalerBehaviorV2getBehavior()behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).NumbergetMaxReplicas()maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.List<MetricSpecV2>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).NumbergetMinReplicas()minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.CrossVersionObjectReferenceV2getScaleTargetRef()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.inthashCode()
-
-
-
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(HorizontalPodAutoscalerSpecV2.Builder builder)
Constructor that initializes the object based on literal property values passed by theHorizontalPodAutoscalerSpecV2.Builder.
-
-
Method Detail
-
getMaxReplicas
public final Number getMaxReplicas()
Description copied from interface:HorizontalPodAutoscalerSpecV2maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.It cannot be less that minReplicas.
- Specified by:
getMaxReplicasin interfaceHorizontalPodAutoscalerSpecV2
-
getScaleTargetRef
public final CrossVersionObjectReferenceV2 getScaleTargetRef()
Description copied from interface:HorizontalPodAutoscalerSpecV2scaleTargetRef 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:
getScaleTargetRefin interfaceHorizontalPodAutoscalerSpecV2
-
getBehavior
public final HorizontalPodAutoscalerBehaviorV2 getBehavior()
Description copied from interface:HorizontalPodAutoscalerSpecV2behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).If not set, the default HPAScalingRules for scale up and scale down are used.
- Specified by:
getBehaviorin interfaceHorizontalPodAutoscalerSpecV2
-
getMetrics
public final List<MetricSpecV2> getMetrics()
Description copied from interface:HorizontalPodAutoscalerSpecV2metrics 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. If not set, the default metric will be set to 80% average CPU utilization.
- Specified by:
getMetricsin interfaceHorizontalPodAutoscalerSpecV2
-
getMinReplicas
public final Number getMinReplicas()
Description copied from interface:HorizontalPodAutoscalerSpecV2minReplicas 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:
getMinReplicasin interfaceHorizontalPodAutoscalerSpecV2
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-