class Google::Apis::ComputeV1::AutoscalingPolicyScaleInControl
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.
Attributes
max_scaled_in_replicas[RW]
Encapsulates numeric value that can be either absolute or relative. Corresponds to the JSON property `maxScaledInReplicas` @return [Google::Apis::ComputeV1::FixedOrPercent]
time_window_sec[RW]
How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above. Corresponds to the JSON property `timeWindowSec` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 2409 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/compute_v1/classes.rb, line 2414 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