Class: Google::Apis::VmwareengineV1::Thresholds

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

Overview

Thresholds define the utilization of resources triggering scale-out and scale- in operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Thresholds

Returns a new instance of Thresholds.



3160
3161
3162
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3160

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

Instance Attribute Details

#scale_inFixnum

Required. The utilization triggering the scale-in operation in percent. Corresponds to the JSON property scaleIn

Returns:

  • (Fixnum)


3153
3154
3155
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3153

def scale_in
  @scale_in
end

#scale_outFixnum

Required. The utilization triggering the scale-out operation in percent. Corresponds to the JSON property scaleOut

Returns:

  • (Fixnum)


3158
3159
3160
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3158

def scale_out
  @scale_out
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3165
3166
3167
3168
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3165

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