Interface HpaScalingRulesV2Beta2
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HpaScalingRulesV2Beta2.Jsii$Proxy
@Generated(value="jsii-pacmak/1.80.0 (build bce6a1d)", date="2023-05-05T16:22:33.935Z") @Stability(Stable) public interface HpaScalingRulesV2Beta2 extends software.amazon.jsii.JsiiSerializable
HPAScalingRules configures the scaling behavior for one direction.These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
HpaScalingRulesV2Beta2.Builder
A builder forHpaScalingRulesV2Beta2
static class
HpaScalingRulesV2Beta2.Jsii$Proxy
An implementation forHpaScalingRulesV2Beta2
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static HpaScalingRulesV2Beta2.Builder
builder()
default List<HpaScalingPolicyV2Beta2>
getPolicies()
policies is a list of potential scaling polices which can be used during scaling.default String
getSelectPolicy()
selectPolicy is used to specify which policy should be used.default Number
getStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down.
-
-
-
Method Detail
-
getPolicies
@Stability(Stable) @Nullable default List<HpaScalingPolicyV2Beta2> getPolicies()
policies is a list of potential scaling polices which can be used during scaling.At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
-
getSelectPolicy
@Stability(Stable) @Nullable default String getSelectPolicy()
selectPolicy is used to specify which policy should be used.If not set, the default value MaxPolicySelect is used.
-
getStabilizationWindowSeconds
@Stability(Stable) @Nullable default Number getStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down.StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
-
builder
@Stability(Stable) static HpaScalingRulesV2Beta2.Builder builder()
- Returns:
- a
HpaScalingRulesV2Beta2.Builder
ofHpaScalingRulesV2Beta2
-
-