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.



86
87
88
89
90
# File 'lib/v20190719/models.rb', line 86

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

Instance Attribute Details

#ScaleThresholdObject

Parameters:

  • Status:

    自动扩容策略开启,关闭

  • ScaleThreshold:

    集群用量占比,到达这个值后开始扩容,范围[10-90]

  • TargetThreshold:

    扩容后使用量跟集群总量比例,范围[10-90]



84
85
86
# File 'lib/v20190719/models.rb', line 84

def ScaleThreshold
  @ScaleThreshold
end

#StatusObject

Parameters:

  • Status:

    自动扩容策略开启,关闭

  • ScaleThreshold:

    集群用量占比,到达这个值后开始扩容,范围[10-90]

  • TargetThreshold:

    扩容后使用量跟集群总量比例,范围[10-90]



84
85
86
# File 'lib/v20190719/models.rb', line 84

def Status
  @Status
end

#TargetThresholdObject

Parameters:

  • Status:

    自动扩容策略开启,关闭

  • ScaleThreshold:

    集群用量占比,到达这个值后开始扩容,范围[10-90]

  • TargetThreshold:

    扩容后使用量跟集群总量比例,范围[10-90]



84
85
86
# File 'lib/v20190719/models.rb', line 84

def TargetThreshold
  @TargetThreshold
end

Instance Method Details

#deserialize(params) ⇒ Object



92
93
94
95
96
# File 'lib/v20190719/models.rb', line 92

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