Class: Google::Apis::ConnectorsV1::HpaConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_thresholdFixnum

Output only. Percent CPU utilization where HPA triggers autoscaling. Corresponds to the JSON property cpuUtilizationThreshold

Returns:

  • (Fixnum)


2645
2646
2647
# File 'lib/google/apis/connectors_v1/classes.rb', line 2645

def cpu_utilization_threshold
  @cpu_utilization_threshold
end

#memory_utilization_thresholdFixnum

Output only. Percent Memory utilization where HPA triggers autoscaling. Corresponds to the JSON property memoryUtilizationThreshold

Returns:

  • (Fixnum)


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