Class: TencentCloud::Cfs::V20190719::AutoScaleUpRule

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190719/models.rb

Overview

自动扩容规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = nil, scalethreshold = nil, targetthreshold = nil) ⇒ AutoScaleUpRule

Returns a new instance of AutoScaleUpRule.



31
32
33
34
35
# File 'lib/v20190719/models.rb', line 31

def initialize(status=nil, scalethreshold=nil, targetthreshold=nil)
  @Status = status
  @ScaleThreshold = scalethreshold
  @TargetThreshold = targetthreshold
end

Instance Attribute Details

#ScaleThresholdObject

Parameters:



29
30
31
# File 'lib/v20190719/models.rb', line 29

def ScaleThreshold
  @ScaleThreshold
end

#StatusObject

Parameters:



29
30
31
# File 'lib/v20190719/models.rb', line 29

def Status
  @Status
end

#TargetThresholdObject

Parameters:



29
30
31
# File 'lib/v20190719/models.rb', line 29

def TargetThreshold
  @TargetThreshold
end

Instance Method Details

#deserialize(params) ⇒ Object



37
38
39
40
41
# File 'lib/v20190719/models.rb', line 37

def deserialize(params)
  @Status = params['Status']
  @ScaleThreshold = params['ScaleThreshold']
  @TargetThreshold = params['TargetThreshold']
end