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.



3848
3849
3850
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3848

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)


3841
3842
3843
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3841

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)


3846
3847
3848
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3846

def scale_out
  @scale_out
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3853
3854
3855
3856
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3853

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