Class: Google::Apis::VmwareengineV1::Thresholds
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::Thresholds
- 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
-
#scale_in ⇒ Fixnum
Required.
-
#scale_out ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Thresholds
constructor
A new instance of Thresholds.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Thresholds
Returns a new instance of Thresholds.
3896 3897 3898 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3896 def initialize(**args) update!(**args) end |
Instance Attribute Details
#scale_in ⇒ Fixnum
Required. The utilization triggering the scale-in operation in percent.
Corresponds to the JSON property scaleIn
3889 3890 3891 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3889 def scale_in @scale_in end |
#scale_out ⇒ Fixnum
Required. The utilization triggering the scale-out operation in percent.
Corresponds to the JSON property scaleOut
3894 3895 3896 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3894 def scale_out @scale_out end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3901 3902 3903 3904 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3901 def update!(**args) @scale_in = args[:scale_in] if args.key?(:scale_in) @scale_out = args[:scale_out] if args.key?(:scale_out) end |