Class: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Configuration that allows for slower scale down so that even if Autoscaler recommends an abrupt scale down of a MIG, it will be throttled as specified by the parameters below.
Instance Attribute Summary collapse
-
#max_scaled_down_replicas ⇒ Google::Apis::ComputeAlpha::FixedOrPercent
Encapsulates numeric value that can be either absolute or relative.
-
#time_window_sec ⇒ Fixnum
How long back autoscaling should look when computing recommendations to include directives regarding slower scale down, as described above.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingPolicyScaleDownControl
constructor
A new instance of AutoscalingPolicyScaleDownControl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoscalingPolicyScaleDownControl
Returns a new instance of AutoscalingPolicyScaleDownControl
2419 2420 2421 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2419 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_scaled_down_replicas ⇒ Google::Apis::ComputeAlpha::FixedOrPercent
Encapsulates numeric value that can be either absolute or relative.
Corresponds to the JSON property maxScaledDownReplicas
2411 2412 2413 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2411 def max_scaled_down_replicas @max_scaled_down_replicas end |
#time_window_sec ⇒ Fixnum
How long back autoscaling should look when computing recommendations to
include directives regarding slower scale down, as described above.
Corresponds to the JSON property timeWindowSec
2417 2418 2419 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2417 def time_window_sec @time_window_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2424 2425 2426 2427 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2424 def update!(**args) @max_scaled_down_replicas = args[:max_scaled_down_replicas] if args.key?(:max_scaled_down_replicas) @time_window_sec = args[:time_window_sec] if args.key?(:time_window_sec) end |