Class: TencentCloud::Monitor::V20180724::ModifyAlarmReceiversRequest

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

Overview

ModifyAlarmReceivers请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(groupid = nil, _module = nil, receiverinfos = nil) ⇒ ModifyAlarmReceiversRequest

Returns a new instance of ModifyAlarmReceiversRequest.



11692
11693
11694
11695
11696
# File 'lib/v20180724/models.rb', line 11692

def initialize(groupid=nil, _module=nil, receiverinfos=nil)
  @GroupId = groupid
  @Module = _module
  @ReceiverInfos = receiverinfos
end

Instance Attribute Details

#GroupIdObject

Parameters:

  • GroupId:

    需要修改接收人的策略组Id

  • Module:

    必填。固定为“monitor”

  • ReceiverInfos:

    新接收人信息, 没有填写则删除所有接收人



11690
11691
11692
# File 'lib/v20180724/models.rb', line 11690

def GroupId
  @GroupId
end

#ModuleObject

Parameters:

  • GroupId:

    需要修改接收人的策略组Id

  • Module:

    必填。固定为“monitor”

  • ReceiverInfos:

    新接收人信息, 没有填写则删除所有接收人



11690
11691
11692
# File 'lib/v20180724/models.rb', line 11690

def Module
  @Module
end

#ReceiverInfosObject

Parameters:

  • GroupId:

    需要修改接收人的策略组Id

  • Module:

    必填。固定为“monitor”

  • ReceiverInfos:

    新接收人信息, 没有填写则删除所有接收人



11690
11691
11692
# File 'lib/v20180724/models.rb', line 11690

def ReceiverInfos
  @ReceiverInfos
end

Instance Method Details

#deserialize(params) ⇒ Object



11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
# File 'lib/v20180724/models.rb', line 11698

def deserialize(params)
  @GroupId = params['GroupId']
  @Module = params['Module']
  unless params['ReceiverInfos'].nil?
    @ReceiverInfos = []
    params['ReceiverInfos'].each do |i|
      receiverinfo_tmp = ReceiverInfo.new
      receiverinfo_tmp.deserialize(i)
      @ReceiverInfos << receiverinfo_tmp
    end
  end
end