Class: Google::Apis::SqladminV1beta4::TargetMetric

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb

Overview

Target metric for read pool auto scaling.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetMetric

Returns a new instance of TargetMetric.



6388
6389
6390
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 6388

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#metricString

The metric name to be used for auto scaling. Corresponds to the JSON property metric

Returns:

  • (String)


6381
6382
6383
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 6381

def metric
  @metric
end

#target_valueFloat

The target value for the metric. Corresponds to the JSON property targetValue

Returns:

  • (Float)


6386
6387
6388
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 6386

def target_value
  @target_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6393
6394
6395
6396
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 6393

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