class TencentCloud::Emr::V20190103::LoadAutoScaleStrategy

自动扩缩容基于负载指标的规则

def deserialize(params)

def deserialize(params)
  @StrategyId = params['StrategyId']
  @StrategyName = params['StrategyName']
  @CalmDownTime = params['CalmDownTime']
  @ScaleAction = params['ScaleAction']
  @ScaleNum = params['ScaleNum']
  @ProcessMethod = params['ProcessMethod']
  @Priority = params['Priority']
  @StrategyStatus = params['StrategyStatus']
  @YarnNodeLabel = params['YarnNodeLabel']
  @PeriodValid = params['PeriodValid']
  @GraceDownFlag = params['GraceDownFlag']
  @GraceDownTime = params['GraceDownTime']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @ConfigGroupAssigned = params['ConfigGroupAssigned']
  @MeasureMethod = params['MeasureMethod']
  unless params['LoadMetricsConditions'].nil?
    @LoadMetricsConditions = LoadMetricsConditions.new
    @LoadMetricsConditions.deserialize(params['LoadMetricsConditions'])
  end
end

def initialize(strategyid=nil, strategyname=nil, calmdowntime=nil, scaleaction=nil, scalenum=nil, processmethod=nil, priority=nil, strategystatus=nil, yarnnodelabel=nil, periodvalid=nil, gracedownflag=nil, gracedowntime=nil, tags=nil, configgroupassigned=nil, measuremethod=nil, loadmetricsconditions=nil)

def initialize(strategyid=nil, strategyname=nil, calmdowntime=nil, scaleaction=nil, scalenum=nil, processmethod=nil, priority=nil, strategystatus=nil, yarnnodelabel=nil, periodvalid=nil, gracedownflag=nil, gracedowntime=nil, tags=nil, configgroupassigned=nil, measuremethod=nil, loadmetricsconditions=nil)
  @StrategyId = strategyid
  @StrategyName = strategyname
  @CalmDownTime = calmdowntime
  @ScaleAction = scaleaction
  @ScaleNum = scalenum
  @ProcessMethod = processmethod
  @Priority = priority
  @StrategyStatus = strategystatus
  @YarnNodeLabel = yarnnodelabel
  @PeriodValid = periodvalid
  @GraceDownFlag = gracedownflag
  @GraceDownTime = gracedowntime
  @Tags = tags
  @ConfigGroupAssigned = configgroupassigned
  @MeasureMethod = measuremethod
  @LoadMetricsConditions = loadmetricsconditions
end