class Google::Apis::AutoscalerV1beta2::AutoscalingPolicy
Cloud Autoscaler policy.
Attributes
The number of seconds that the Autoscaler should wait between two succeeding changes to the number of virtual machines. You should define an interval that is at least as long as the initialization time of a virtual machine and the time it may take for replica pool to create the virtual machine. The default is 60 seconds. Corresponds to the JSON property `coolDownPeriodSec` @return [Fixnum]
CPU utilization policy. Corresponds to the JSON property `cpuUtilization` @return [Google::Apis::AutoscalerV1beta2::AutoscalingPolicyCpuUtilization]
Configuration parameters of autoscaling based on custom metric. Corresponds to the JSON property `customMetricUtilizations` @return [Array<Google::Apis::AutoscalerV1beta2::AutoscalingPolicyCustomMetricUtilization>]
Load balancing utilization policy. Corresponds to the JSON property `loadBalancingUtilization` @return [Google::Apis::AutoscalerV1beta2::AutoscalingPolicyLoadBalancingUtilization]
The maximum number of replicas that the Autoscaler can scale up to. Corresponds to the JSON property `maxNumReplicas` @return [Fixnum]
The minimum number of replicas that the Autoscaler can scale down to. Corresponds to the JSON property `minNumReplicas` @return [Fixnum]
Public Class Methods
# File generated/google/apis/autoscaler_v1beta2/classes.rb, line 157 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/autoscaler_v1beta2/classes.rb, line 162 def update!(**args) @cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec) @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization) @custom_metric_utilizations = args[:custom_metric_utilizations] if args.key?(:custom_metric_utilizations) @load_balancing_utilization = args[:load_balancing_utilization] if args.key?(:load_balancing_utilization) @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas) @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas) end