Class: Google::Apis::BigtableadminV2::AutoscalingTargets
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::AutoscalingTargets
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb
Overview
The Autoscaling targets for a Cluster. These determine the recommended nodes.
Instance Attribute Summary collapse
-
#cpu_utilization_percent ⇒ Fixnum
The cpu utilization that the Autoscaler should be trying to achieve.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingTargets
constructor
A new instance of AutoscalingTargets.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutoscalingTargets
Returns a new instance of AutoscalingTargets.
188 189 190 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 188 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_utilization_percent ⇒ Fixnum
The cpu utilization that the Autoscaler should be trying to achieve. This
number is on a scale from 0 (no utilization) to 100 (total utilization), and
is limited between 10 and 80, otherwise it will return INVALID_ARGUMENT error.
Corresponds to the JSON property cpuUtilizationPercent
186 187 188 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 186 def cpu_utilization_percent @cpu_utilization_percent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
193 194 195 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 193 def update!(**args) @cpu_utilization_percent = args[:cpu_utilization_percent] if args.key?(:cpu_utilization_percent) end |