Class: Google::Apis::ComputeBeta::AutoscalingPolicyScaleInControl
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::AutoscalingPolicyScaleInControl
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Overview
Configuration that allows for slower scale in so that even if Autoscaler recommends an abrupt scale in of a MIG, it will be throttled as specified by the parameters below.
Instance Attribute Summary collapse
-
#max_scaled_in_replicas ⇒ Google::Apis::ComputeBeta::FixedOrPercent
Encapsulates numeric value that can be either absolute or relative.
-
#time_window_sec ⇒ Fixnum
How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingPolicyScaleInControl
constructor
A new instance of AutoscalingPolicyScaleInControl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutoscalingPolicyScaleInControl
Returns a new instance of AutoscalingPolicyScaleInControl.
2413 2414 2415 |
# File 'generated/google/apis/compute_beta/classes.rb', line 2413 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_scaled_in_replicas ⇒ Google::Apis::ComputeBeta::FixedOrPercent
Encapsulates numeric value that can be either absolute or relative.
Corresponds to the JSON property maxScaledInReplicas
2405 2406 2407 |
# File 'generated/google/apis/compute_beta/classes.rb', line 2405 def max_scaled_in_replicas @max_scaled_in_replicas end |
#time_window_sec ⇒ Fixnum
How far back autoscaling looks when computing recommendations to include
directives regarding slower scale in, as described above.
Corresponds to the JSON property timeWindowSec
2411 2412 2413 |
# File 'generated/google/apis/compute_beta/classes.rb', line 2411 def time_window_sec @time_window_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2418 2419 2420 2421 |
# File 'generated/google/apis/compute_beta/classes.rb', line 2418 def update!(**args) @max_scaled_in_replicas = args[:max_scaled_in_replicas] if args.key?(:max_scaled_in_replicas) @time_window_sec = args[:time_window_sec] if args.key?(:time_window_sec) end |