Class V2beta2HPAScalingRules

java.lang.Object
io.kubernetes.client.openapi.models.V2beta2HPAScalingRules

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V2beta2HPAScalingRules extends Object
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.
  • Field Details

  • Constructor Details

    • V2beta2HPAScalingRules

      public V2beta2HPAScalingRules()
  • Method Details

    • policies

    • addPoliciesItem

      public V2beta2HPAScalingRules addPoliciesItem(V2beta2HPAScalingPolicy policiesItem)
    • getPolicies

      @Nullable public List<V2beta2HPAScalingPolicy> 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
      Returns:
      policies
    • setPolicies

      public void setPolicies(List<V2beta2HPAScalingPolicy> policies)
    • selectPolicy

      public V2beta2HPAScalingRules selectPolicy(String selectPolicy)
    • getSelectPolicy

      @Nullable public String getSelectPolicy()
      selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.
      Returns:
      selectPolicy
    • setSelectPolicy

      public void setSelectPolicy(String selectPolicy)
    • stabilizationWindowSeconds

      public V2beta2HPAScalingRules stabilizationWindowSeconds(Integer stabilizationWindowSeconds)
    • getStabilizationWindowSeconds

      @Nullable public Integer 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).
      Returns:
      stabilizationWindowSeconds
    • setStabilizationWindowSeconds

      public void setStabilizationWindowSeconds(Integer stabilizationWindowSeconds)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object