Class: TencentCloud::Cls::V20201016::ModifyAlarmNoticeRequest

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

Overview

ModifyAlarmNotice请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarmnoticeid = nil, tags = nil, name = nil, type = nil, noticereceivers = nil, webcallbacks = nil, noticerules = nil, jumpdomain = nil, deliverstatus = nil, deliverconfig = nil, alarmshieldstatus = nil, callbackprioritize = nil) ⇒ ModifyAlarmNoticeRequest

Returns a new instance of ModifyAlarmNoticeRequest.



13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
# File 'lib/v20201016/models.rb', line 13139

def initialize(alarmnoticeid=nil, tags=nil, name=nil, type=nil, noticereceivers=nil, webcallbacks=nil, noticerules=nil, jumpdomain=nil, deliverstatus=nil, deliverconfig=nil, alarmshieldstatus=nil, callbackprioritize=nil)
  @AlarmNoticeId = alarmnoticeid
  @Tags = tags
  @Name = name
  @Type = type
  @NoticeReceivers = noticereceivers
  @WebCallbacks = webcallbacks
  @NoticeRules = noticerules
  @JumpDomain = jumpdomain
  @DeliverStatus = deliverstatus
  @DeliverConfig = deliverconfig
  @AlarmShieldStatus = alarmshieldstatus
  @CallbackPrioritize = callbackprioritize
end

Instance Attribute Details

#AlarmNoticeId ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def AlarmNoticeId
  @AlarmNoticeId
end

#AlarmShieldStatus ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def AlarmShieldStatus
  @AlarmShieldStatus
end

#CallbackPrioritize ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def CallbackPrioritize
  @CallbackPrioritize
end

#DeliverConfig ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def DeliverConfig
  @DeliverConfig
end

#DeliverStatus ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def DeliverStatus
  @DeliverStatus
end

#JumpDomain ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def JumpDomain
  @JumpDomain
end

#Name ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def Name
  @Name
end

#NoticeReceivers ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def NoticeReceivers
  @NoticeReceivers
end

#NoticeRules ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def NoticeRules
  @NoticeRules
end

#Tags ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def Tags
  @Tags
end

#Type ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def Type
  @Type
end

#WebCallbacks ⇒ Object

参数值: 1:关闭 2:开启(默认开启)

  • true: 使用通知内容模板中的自定义回调参数覆盖告警策略中单独配置的请求头及请求内容。
  • false:优先使用告警策略中单独配置的请求头及请求内容。

Parameters:

  • CallbackPrioritize: —

    统一设定自定义回调参数。



13137
13138
13139
# File 'lib/v20201016/models.rb', line 13137

def WebCallbacks
  @WebCallbacks
end

Instance Method Details

#deserialize(params) ⇒ Object



13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
# File 'lib/v20201016/models.rb', line 13154

def deserialize(params)
  @AlarmNoticeId = params['AlarmNoticeId']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @Name = params['Name']
  @Type = params['Type']
  unless params['NoticeReceivers'].nil?
    @NoticeReceivers = []
    params['NoticeReceivers'].each do |i|
      noticereceiver_tmp = NoticeReceiver.new
      noticereceiver_tmp.deserialize(i)
      @NoticeReceivers << noticereceiver_tmp
    end
  end
  unless params['WebCallbacks'].nil?
    @WebCallbacks = []
    params['WebCallbacks'].each do |i|
      webcallback_tmp = WebCallback.new
      webcallback_tmp.deserialize(i)
      @WebCallbacks << webcallback_tmp
    end
  end
  unless params['NoticeRules'].nil?
    @NoticeRules = []
    params['NoticeRules'].each do |i|
      noticerule_tmp = NoticeRule.new
      noticerule_tmp.deserialize(i)
      @NoticeRules << noticerule_tmp
    end
  end
  @JumpDomain = params['JumpDomain']
  @DeliverStatus = params['DeliverStatus']
  unless params['DeliverConfig'].nil?
    @DeliverConfig = DeliverConfig.new
    @DeliverConfig.deserialize(params['DeliverConfig'])
  end
  @AlarmShieldStatus = params['AlarmShieldStatus']
  @CallbackPrioritize = params['CallbackPrioritize']
end