Package org.cdk8s.plus25
Class ScalingRules.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus25.ScalingRules.Jsii$Proxy
-
- All Implemented Interfaces:
ScalingRules,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ScalingRules
@Stability(Stable) @Internal public static final class ScalingRules.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ScalingRules
An implementation forScalingRules
-
-
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.ScalingRules
ScalingRules.Builder, ScalingRules.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ScalingRules.Builder builder)Constructor that initializes the object based on literal property values passed by theScalingRules.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)List<ScalingPolicy>getPolicies()The scaling policies.org.cdk8s.DurationgetStabilizationWindow()Defines the window of past metrics that the autoscaler should consider when calculating wether or not autoscaling should occur.ScalingStrategygetStrategy()The strategy to use when scaling.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(ScalingRules.Builder builder)
Constructor that initializes the object based on literal property values passed by theScalingRules.Builder.
-
-
Method Detail
-
getPolicies
public final List<ScalingPolicy> getPolicies()
Description copied from interface:ScalingRulesThe scaling policies.Default: * Scale up * Increase no more than 4 pods per 60 seconds * Double the number of pods per 60 seconds * Scale down * Decrease to minReplica count
- Specified by:
getPoliciesin interfaceScalingRules
-
getStabilizationWindow
public final org.cdk8s.Duration getStabilizationWindow()
Description copied from interface:ScalingRulesDefines the window of past metrics that the autoscaler should consider when calculating wether or not autoscaling should occur.Minimum duration is 1 second, max is 1 hour.
Default: * On scale down no stabilization is performed. * On scale up stabilization is performed for 5 minutes.
Example:
stabilizationWindow: Duration.minutes(30) // Autoscaler considers the last 30 minutes of metrics when deciding whether to scale.
- Specified by:
getStabilizationWindowin interfaceScalingRules
-
getStrategy
public final ScalingStrategy getStrategy()
Description copied from interface:ScalingRulesThe strategy to use when scaling.Default: MAX_CHANGE
- Specified by:
getStrategyin interfaceScalingRules
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-