Package org.cdk8s.plus24
Class ScalingRules.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.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.plus24.ScalingRules
ScalingRules.Builder, ScalingRules.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(ScalingRules.Builder builder)
Constructor that initializes the object based on literal property values passed by theScalingRules.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)
List<ScalingPolicy>
getPolicies()
The scaling policies.org.cdk8s.Duration
getStabilizationWindow()
Defines the window of past metrics that the autoscaler should consider when calculating wether or not autoscaling should occur.ScalingStrategy
getStrategy()
The strategy to use when scaling.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(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:ScalingRules
The 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:
getPolicies
in interfaceScalingRules
-
getStabilizationWindow
public final org.cdk8s.Duration getStabilizationWindow()
Description copied from interface:ScalingRules
Defines 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:
getStabilizationWindow
in interfaceScalingRules
-
getStrategy
public final ScalingStrategy getStrategy()
Description copied from interface:ScalingRules
The strategy to use when scaling.Default: MAX_CHANGE
- Specified by:
getStrategy
in interfaceScalingRules
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-