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.



1159
1160
1161
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1159

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)


1157
1158
1159
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1157

def utilization_target
  @utilization_target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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