Class: Google::Apis::ConnectorsV1::HpaConfig
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::HpaConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
Autoscaling config for connector deployment system metrics.
Instance Attribute Summary collapse
-
#cpu_utilization_threshold ⇒ Fixnum
Output only.
-
#memory_utilization_threshold ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HpaConfig
constructor
A new instance of HpaConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HpaConfig
Returns a new instance of HpaConfig.
2652 2653 2654 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2652 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_utilization_threshold ⇒ Fixnum
Output only. Percent CPU utilization where HPA triggers autoscaling.
Corresponds to the JSON property cpuUtilizationThreshold
2645 2646 2647 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2645 def cpu_utilization_threshold @cpu_utilization_threshold end |
#memory_utilization_threshold ⇒ Fixnum
Output only. Percent Memory utilization where HPA triggers autoscaling.
Corresponds to the JSON property memoryUtilizationThreshold
2650 2651 2652 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2650 def memory_utilization_threshold @memory_utilization_threshold end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2657 2658 2659 2660 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2657 def update!(**args) @cpu_utilization_threshold = args[:cpu_utilization_threshold] if args.key?(:cpu_utilization_threshold) @memory_utilization_threshold = args[:memory_utilization_threshold] if args.key?(:memory_utilization_threshold) end |