Class: Google::Apis::AlloydbV1beta::CpuUtilization
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::CpuUtilization
- 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
-
#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.
1165 1166 1167 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1165 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
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 |