class Google::Apis::AutoscalerV1beta2::AutoscalingPolicyCpuUtilization

CPU utilization policy.

Attributes

utilization_target[RW]

The target utilization that the Autoscaler should maintain. It is represented as a fraction of used cores. For example: 6 cores used in 8-core VM are represented here as 0.75. Must be a float value between (0, 1]. If not defined, the default is 0.8. Corresponds to the JSON property `utilizationTarget` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/autoscaler_v1beta2/classes.rb, line 184
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/autoscaler_v1beta2/classes.rb, line 189
def update!(**args)
  @utilization_target = args[:utilization_target] if args.key?(:utilization_target)
end