class K8S::Api::Autoscaling::V2beta2::HPAScalingRules
- K8S::Api::Autoscaling::V2beta2::HPAScalingRules
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.18/api/autoscaling/v2beta2/hpa_scaling_rules.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, policies : Array(Api::Autoscaling::V2beta2::HPAScalingPolicy)? = nil, select_policy : String? = nil, stabilization_window_seconds : Int32? = nil)
Instance Method Summary
- #policies : Array(Api::Autoscaling::V2beta2::HPAScalingPolicy)?
- #policies=(policies : Array(Api::Autoscaling::V2beta2::HPAScalingPolicy)?)
- #select_policy : String?
- #select_policy=(select_policy : String?)
- #stabilization_window_seconds : Int32?
- #stabilization_window_seconds=(stabilization_window_seconds : Int32?)
Constructor Detail
def self.new(*, policies : Array(Api::Autoscaling::V2beta2::HPAScalingPolicy)? = nil, select_policy : String? = nil, stabilization_window_seconds : Int32? = nil)
#