Class: Google::Apis::ComputeV1::AutoscalingPolicyScaleInControl

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutoscalingPolicyScaleInControl

Returns a new instance of AutoscalingPolicyScaleInControl.



2287
2288
2289
# File 'generated/google/apis/compute_v1/classes.rb', line 2287

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#max_scaled_in_replicasGoogle::Apis::ComputeV1::FixedOrPercent

Encapsulates numeric value that can be either absolute or relative. Corresponds to the JSON property maxScaledInReplicas



2279
2280
2281
# File 'generated/google/apis/compute_v1/classes.rb', line 2279

def max_scaled_in_replicas
  @max_scaled_in_replicas
end

#time_window_secFixnum

How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above. Corresponds to the JSON property timeWindowSec

Returns:

  • (Fixnum)


2285
2286
2287
# File 'generated/google/apis/compute_v1/classes.rb', line 2285

def time_window_sec
  @time_window_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2292
2293
2294
2295
# File 'generated/google/apis/compute_v1/classes.rb', line 2292

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