Class: TencentCloud::As::V20180419::AutoScalingAdvice
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::As::V20180419::AutoScalingAdvice
- Defined in:
- lib/v20180419/models.rb
Overview
伸缩组配置建议。
Instance Attribute Summary collapse
-
#Advices ⇒ Object
- NORMAL:正常
- WARNING:警告级别
- CRITICAL:严重级别
. -
#AutoScalingGroupId ⇒ Object
- NORMAL:正常
- WARNING:警告级别
- CRITICAL:严重级别
. -
#Level ⇒ Object
- NORMAL:正常
- WARNING:警告级别
- CRITICAL:严重级别
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(autoscalinggroupid = nil, level = nil, advices = nil) ⇒ AutoScalingAdvice
constructor
A new instance of AutoScalingAdvice.
Constructor Details
#initialize(autoscalinggroupid = nil, level = nil, advices = nil) ⇒ AutoScalingAdvice
Returns a new instance of AutoScalingAdvice.
309 310 311 312 313 |
# File 'lib/v20180419/models.rb', line 309 def initialize(autoscalinggroupid=nil, level=nil, advices=nil) @AutoScalingGroupId = autoscalinggroupid @Level = level @Advices = advices end |
Instance Attribute Details
#Advices ⇒ Object
307 308 309 |
# File 'lib/v20180419/models.rb', line 307 def Advices @Advices end |
#AutoScalingGroupId ⇒ Object
307 308 309 |
# File 'lib/v20180419/models.rb', line 307 def AutoScalingGroupId @AutoScalingGroupId end |
#Level ⇒ Object
307 308 309 |
# File 'lib/v20180419/models.rb', line 307 def Level @Level end |
Instance Method Details
#deserialize(params) ⇒ Object
315 316 317 318 319 320 321 322 323 324 325 326 |
# File 'lib/v20180419/models.rb', line 315 def deserialize(params) @AutoScalingGroupId = params['AutoScalingGroupId'] @Level = params['Level'] unless params['Advices'].nil? @Advices = [] params['Advices'].each do |i| advice_tmp = Advice.new advice_tmp.deserialize(i) @Advices << advice_tmp end end end |