class Google::Apis::ComputeV1::AutoscalingPolicyCpuUtilization
CPU utilization policy.
Attributes
utilization_target[RW]
The target CPU utilization that the autoscaler should maintain. Must be a float value in the range (0, 1]. If not specified, the default is 0.8. If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization. If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization. Corresponds to the JSON property `utilizationTarget` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/compute_v1/classes.rb, line 852 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/compute_v1/classes.rb, line 857 def update!(**args) @utilization_target = args[:utilization_target] if args.key?(:utilization_target) end