Class: Google::Apis::VmwareengineV1::AutoscalingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::AutoscalingPolicy
- 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
Autoscaling policy describes the behavior of the autoscaling with respect to the resource utilization. The scale-out operation is initiated if the utilization exceeds ANY of the respective thresholds. The scale-in operation is initiated if the utilization is below ALL of the respective thresholds.
Instance Attribute Summary collapse
-
#consumed_memory_thresholds ⇒ Google::Apis::VmwareengineV1::Thresholds
Thresholds define the utilization of resources triggering scale-out and scale- in operations.
-
#cpu_thresholds ⇒ Google::Apis::VmwareengineV1::Thresholds
Thresholds define the utilization of resources triggering scale-out and scale- in operations.
-
#granted_memory_thresholds ⇒ Google::Apis::VmwareengineV1::Thresholds
Thresholds define the utilization of resources triggering scale-out and scale- in operations.
-
#node_type_id ⇒ String
Required.
-
#scale_out_size ⇒ Fixnum
Required.
-
#storage_thresholds ⇒ Google::Apis::VmwareengineV1::Thresholds
Thresholds define the utilization of resources triggering scale-out and scale- in operations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingPolicy
constructor
A new instance of AutoscalingPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutoscalingPolicy
Returns a new instance of AutoscalingPolicy.
140 141 142 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 140 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumed_memory_thresholds ⇒ Google::Apis::VmwareengineV1::Thresholds
Thresholds define the utilization of resources triggering scale-out and scale-
in operations.
Corresponds to the JSON property consumedMemoryThresholds
107 108 109 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 107 def consumed_memory_thresholds @consumed_memory_thresholds end |
#cpu_thresholds ⇒ Google::Apis::VmwareengineV1::Thresholds
Thresholds define the utilization of resources triggering scale-out and scale-
in operations.
Corresponds to the JSON property cpuThresholds
113 114 115 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 113 def cpu_thresholds @cpu_thresholds end |
#granted_memory_thresholds ⇒ Google::Apis::VmwareengineV1::Thresholds
Thresholds define the utilization of resources triggering scale-out and scale-
in operations.
Corresponds to the JSON property grantedMemoryThresholds
119 120 121 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 119 def granted_memory_thresholds @granted_memory_thresholds end |
#node_type_id ⇒ String
Required. The canonical identifier of the node type to add or remove.
Corresponds to the NodeType
.
Corresponds to the JSON property nodeTypeId
125 126 127 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 125 def node_type_id @node_type_id end |
#scale_out_size ⇒ Fixnum
Required. Number of nodes to add to a cluster during a scale-out operation.
Must be divisible by 2 for stretched clusters. During a scale-in operation
only one node (or 2 for stretched clusters) are removed in a single iteration.
Corresponds to the JSON property scaleOutSize
132 133 134 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 132 def scale_out_size @scale_out_size end |
#storage_thresholds ⇒ Google::Apis::VmwareengineV1::Thresholds
Thresholds define the utilization of resources triggering scale-out and scale-
in operations.
Corresponds to the JSON property storageThresholds
138 139 140 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 138 def storage_thresholds @storage_thresholds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
145 146 147 148 149 150 151 152 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 145 def update!(**args) @consumed_memory_thresholds = args[:consumed_memory_thresholds] if args.key?(:consumed_memory_thresholds) @cpu_thresholds = args[:cpu_thresholds] if args.key?(:cpu_thresholds) @granted_memory_thresholds = args[:granted_memory_thresholds] if args.key?(:granted_memory_thresholds) @node_type_id = args[:node_type_id] if args.key?(:node_type_id) @scale_out_size = args[:scale_out_size] if args.key?(:scale_out_size) @storage_thresholds = args[:storage_thresholds] if args.key?(:storage_thresholds) end |