Class V2HPAScalingRules
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V2HPAScalingRules
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V2HPAScalingRules
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddpoliciesItem
(V2HPAScalingPolicy policiesItem) Add an item to the policies property in a chainable fashion.boolean
List<@Valid V2HPAScalingPolicy>
policies is a list of potential scaling polices which can be used during scaling.selectPolicy is used to specify which policy should be used.stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down.int
hashCode()
policies
(List<@Valid V2HPAScalingPolicy> policies) Set policies in a chainable fashion.selectPolicy
(String selectPolicy) Set selectPolicy in a chainable fashion.void
setPolicies
(List<@Valid V2HPAScalingPolicy> policies) Set the policies property valuevoid
setSelectPolicy
(String selectPolicy) Set the selectPolicy property valuevoid
setStabilizationWindowSeconds
(Integer stabilizationWindowSeconds) Set the stabilizationWindowSeconds property valuestabilizationWindowSeconds
(Integer stabilizationWindowSeconds) Set stabilizationWindowSeconds in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_POLICIES
- See Also:
-
JSON_PROPERTY_SELECT_POLICY
- See Also:
-
JSON_PROPERTY_STABILIZATION_WINDOW_SECONDS
- See Also:
-
-
Constructor Details
-
V2HPAScalingRules
public V2HPAScalingRules()
-
-
Method Details
-
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:
- the policies property value
-
setPolicies
Set the policies property value- Parameters:
policies
- property value to set
-
policies
Set policies in a chainable fashion.- Returns:
- The same instance of V2HPAScalingRules for chaining.
-
addpoliciesItem
Add an item to the policies property in a chainable fashion.- Returns:
- The same instance of V2HPAScalingRules for chaining.
-
getSelectPolicy
selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.- Returns:
- the selectPolicy property value
-
setSelectPolicy
Set the selectPolicy property value- Parameters:
selectPolicy
- property value to set
-
selectPolicy
Set selectPolicy in a chainable fashion.- Returns:
- The same instance of V2HPAScalingRules for chaining.
-
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:
- the stabilizationWindowSeconds property value
-
setStabilizationWindowSeconds
Set the stabilizationWindowSeconds property value- Parameters:
stabilizationWindowSeconds
- property value to set
-
stabilizationWindowSeconds
Set stabilizationWindowSeconds in a chainable fashion.- Returns:
- The same instance of V2HPAScalingRules for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-