Class: Google::Apis::AlloydbV1alpha::CpuUtilization
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::CpuUtilization
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Overview
CPU utilization policy for the autoscaler.
Instance Attribute Summary collapse
-
#utilization_target ⇒ Float
Target CPU utilization as a float between 0 and 1.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CpuUtilization
constructor
A new instance of CpuUtilization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CpuUtilization
Returns a new instance of CpuUtilization.
1186 1187 1188 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#utilization_target ⇒ Float
Target CPU utilization as a float between 0 and 1.
Corresponds to the JSON property utilizationTarget
1184 1185 1186 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1184 def utilization_target @utilization_target end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1191 1192 1193 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1191 def update!(**args) @utilization_target = args[:utilization_target] if args.key?(:utilization_target) end |