Class HPAScalingRules.Builder

  • Enclosing class:
    HPAScalingRules

    public static class HPAScalingRules.Builder
    extends java.lang.Object
    • Method Detail

      • selectPolicy

        public HPAScalingRules.Builder selectPolicy​(java.lang.String selectPolicy)
        selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.
        Returns:
        this.
      • stabilizationWindowSeconds

        public HPAScalingRules.Builder stabilizationWindowSeconds​(java.lang.Number stabilizationWindowSeconds)
        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).
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object