Class 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 for ScalingRules
    • 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.
    • 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 interface ScalingRules
      • 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 interface ScalingRules
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object