Class: Google::Apis::AlloydbV1beta::CpuUtilization

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb

Overview

CPU utilization policy for the autoscaler.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CpuUtilization

Returns a new instance of CpuUtilization.



1165
1166
1167
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1165

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

Instance Attribute Details

#utilization_targetFloat

Target CPU utilization as a float between 0 and 1. Corresponds to the JSON property utilizationTarget

Returns:

  • (Float)


1163
1164
1165
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1163

def utilization_target
  @utilization_target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1170
1171
1172
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1170

def update!(**args)
  @utilization_target = args[:utilization_target] if args.key?(:utilization_target)
end