Class: TencentCloud::Wedata::V20210820::SetTaskAlarmNewRequest

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

Overview

SetTaskAlarmNew请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarminfolist = nil, projectid = nil) ⇒ SetTaskAlarmNewRequest

Returns a new instance of SetTaskAlarmNewRequest.



33708
33709
33710
33711
# File 'lib/v20210820/models.rb', line 33708

def initialize(alarminfolist=nil, projectid=nil)
  @AlarmInfoList = alarminfolist
  @ProjectId = projectid
end

Instance Attribute Details

#AlarmInfoListObject

Parameters:

  • AlarmInfoList:

    设置任务超时告警和失败告警信息

  • ProjectId:

    项目Id



33706
33707
33708
# File 'lib/v20210820/models.rb', line 33706

def AlarmInfoList
  @AlarmInfoList
end

#ProjectIdObject

Parameters:

  • AlarmInfoList:

    设置任务超时告警和失败告警信息

  • ProjectId:

    项目Id



33706
33707
33708
# File 'lib/v20210820/models.rb', line 33706

def ProjectId
  @ProjectId
end

Instance Method Details

#deserialize(params) ⇒ Object



33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
# File 'lib/v20210820/models.rb', line 33713

def deserialize(params)
  unless params['AlarmInfoList'].nil?
    @AlarmInfoList = []
    params['AlarmInfoList'].each do |i|
      alarminfo_tmp = AlarmInfo.new
      alarminfo_tmp.deserialize(i)
      @AlarmInfoList << alarminfo_tmp
    end
  end
  @ProjectId = params['ProjectId']
end