Class: TencentCloud::Monitor::V20180724::ModifyAlarmNoticeRequest

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

Overview

ModifyAlarmNotice请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_module = nil, name = nil, noticetype = nil, noticelanguage = nil, noticeid = nil, usernotices = nil, urlnotices = nil, clsnotices = nil, policyids = nil, isloginfree = nil) ⇒ ModifyAlarmNoticeRequest

Returns a new instance of ModifyAlarmNoticeRequest.



11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
# File 'lib/v20180724/models.rb', line 11332

def initialize(_module=nil, name=nil, noticetype=nil, noticelanguage=nil, noticeid=nil, usernotices=nil, urlnotices=nil, clsnotices=nil, policyids=nil, isloginfree=nil)
  @Module = _module
  @Name = name
  @NoticeType = noticetype
  @NoticeLanguage = noticelanguage
  @NoticeId = noticeid
  @UserNotices = usernotices
  @URLNotices = urlnotices
  @CLSNotices = clsnotices
  @PolicyIds = policyids
  @IsLoginFree = isloginfree
end

Instance Attribute Details

#CLSNoticesObject

Parameters:

  • 模块名,这里填“monitor”

  • 告警通知规则名称 60字符以内

  • 通知类型 ALARM=未恢复通知 OK=已恢复通知 ALL=都通知

  • 通知语言 zh-CN=中文 en-US=英文

  • 告警通知模板 ID

  • 用户通知 最多5个

  • 回调通知 最多6个

  • 告警通知推送到CLS服务 最多1个

  • 告警通知模板绑定的告警策略ID列表

  • 是否免登录,0-否,1-是



11330
11331
11332
# File 'lib/v20180724/models.rb', line 11330

def CLSNotices
  @CLSNotices
end

#IsLoginFreeObject

Parameters:

  • 模块名,这里填“monitor”

  • 告警通知规则名称 60字符以内

  • 通知类型 ALARM=未恢复通知 OK=已恢复通知 ALL=都通知

  • 通知语言 zh-CN=中文 en-US=英文

  • 告警通知模板 ID

  • 用户通知 最多5个

  • 回调通知 最多6个

  • 告警通知推送到CLS服务 最多1个

  • 告警通知模板绑定的告警策略ID列表

  • 是否免登录,0-否,1-是



11330
11331
11332
# File 'lib/v20180724/models.rb', line 11330

def IsLoginFree
  @IsLoginFree
end

#ModuleObject

Parameters:

  • 模块名,这里填“monitor”

  • 告警通知规则名称 60字符以内

  • 通知类型 ALARM=未恢复通知 OK=已恢复通知 ALL=都通知

  • 通知语言 zh-CN=中文 en-US=英文

  • 告警通知模板 ID

  • 用户通知 最多5个

  • 回调通知 最多6个

  • 告警通知推送到CLS服务 最多1个

  • 告警通知模板绑定的告警策略ID列表

  • 是否免登录,0-否,1-是



11330
11331
11332
# File 'lib/v20180724/models.rb', line 11330

def Module
  @Module
end

#NameObject

Parameters:

  • 模块名,这里填“monitor”

  • 告警通知规则名称 60字符以内

  • 通知类型 ALARM=未恢复通知 OK=已恢复通知 ALL=都通知

  • 通知语言 zh-CN=中文 en-US=英文

  • 告警通知模板 ID

  • 用户通知 最多5个

  • 回调通知 最多6个

  • 告警通知推送到CLS服务 最多1个

  • 告警通知模板绑定的告警策略ID列表

  • 是否免登录,0-否,1-是



11330
11331
11332
# File 'lib/v20180724/models.rb', line 11330

def Name
  @Name
end

#NoticeIdObject

Parameters:

  • 模块名,这里填“monitor”

  • 告警通知规则名称 60字符以内

  • 通知类型 ALARM=未恢复通知 OK=已恢复通知 ALL=都通知

  • 通知语言 zh-CN=中文 en-US=英文

  • 告警通知模板 ID

  • 用户通知 最多5个

  • 回调通知 最多6个

  • 告警通知推送到CLS服务 最多1个

  • 告警通知模板绑定的告警策略ID列表

  • 是否免登录,0-否,1-是



11330
11331
11332
# File 'lib/v20180724/models.rb', line 11330

def NoticeId
  @NoticeId
end

#NoticeLanguageObject

Parameters:

  • 模块名,这里填“monitor”

  • 告警通知规则名称 60字符以内

  • 通知类型 ALARM=未恢复通知 OK=已恢复通知 ALL=都通知

  • 通知语言 zh-CN=中文 en-US=英文

  • 告警通知模板 ID

  • 用户通知 最多5个

  • 回调通知 最多6个

  • 告警通知推送到CLS服务 最多1个

  • 告警通知模板绑定的告警策略ID列表

  • 是否免登录,0-否,1-是



11330
11331
11332
# File 'lib/v20180724/models.rb', line 11330

def NoticeLanguage
  @NoticeLanguage
end

#NoticeTypeObject

Parameters:

  • 模块名,这里填“monitor”

  • 告警通知规则名称 60字符以内

  • 通知类型 ALARM=未恢复通知 OK=已恢复通知 ALL=都通知

  • 通知语言 zh-CN=中文 en-US=英文

  • 告警通知模板 ID

  • 用户通知 最多5个

  • 回调通知 最多6个

  • 告警通知推送到CLS服务 最多1个

  • 告警通知模板绑定的告警策略ID列表

  • 是否免登录,0-否,1-是



11330
11331
11332
# File 'lib/v20180724/models.rb', line 11330

def NoticeType
  @NoticeType
end

#PolicyIdsObject

Parameters:

  • 模块名,这里填“monitor”

  • 告警通知规则名称 60字符以内

  • 通知类型 ALARM=未恢复通知 OK=已恢复通知 ALL=都通知

  • 通知语言 zh-CN=中文 en-US=英文

  • 告警通知模板 ID

  • 用户通知 最多5个

  • 回调通知 最多6个

  • 告警通知推送到CLS服务 最多1个

  • 告警通知模板绑定的告警策略ID列表

  • 是否免登录,0-否,1-是



11330
11331
11332
# File 'lib/v20180724/models.rb', line 11330

def PolicyIds
  @PolicyIds
end

#URLNoticesObject

Parameters:

  • 模块名,这里填“monitor”

  • 告警通知规则名称 60字符以内

  • 通知类型 ALARM=未恢复通知 OK=已恢复通知 ALL=都通知

  • 通知语言 zh-CN=中文 en-US=英文

  • 告警通知模板 ID

  • 用户通知 最多5个

  • 回调通知 最多6个

  • 告警通知推送到CLS服务 最多1个

  • 告警通知模板绑定的告警策略ID列表

  • 是否免登录,0-否,1-是



11330
11331
11332
# File 'lib/v20180724/models.rb', line 11330

def URLNotices
  @URLNotices
end

#UserNoticesObject

Parameters:

  • 模块名,这里填“monitor”

  • 告警通知规则名称 60字符以内

  • 通知类型 ALARM=未恢复通知 OK=已恢复通知 ALL=都通知

  • 通知语言 zh-CN=中文 en-US=英文

  • 告警通知模板 ID

  • 用户通知 最多5个

  • 回调通知 最多6个

  • 告警通知推送到CLS服务 最多1个

  • 告警通知模板绑定的告警策略ID列表

  • 是否免登录,0-否,1-是



11330
11331
11332
# File 'lib/v20180724/models.rb', line 11330

def UserNotices
  @UserNotices
end

Instance Method Details

#deserialize(params) ⇒ Object



11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
# File 'lib/v20180724/models.rb', line 11345

def deserialize(params)
  @Module = params['Module']
  @Name = params['Name']
  @NoticeType = params['NoticeType']
  @NoticeLanguage = params['NoticeLanguage']
  @NoticeId = params['NoticeId']
  unless params['UserNotices'].nil?
    @UserNotices = []
    params['UserNotices'].each do |i|
      usernotice_tmp = UserNotice.new
      usernotice_tmp.deserialize(i)
      @UserNotices << usernotice_tmp
    end
  end
  unless params['URLNotices'].nil?
    @URLNotices = []
    params['URLNotices'].each do |i|
      urlnotice_tmp = URLNotice.new
      urlnotice_tmp.deserialize(i)
      @URLNotices << urlnotice_tmp
    end
  end
  unless params['CLSNotices'].nil?
    @CLSNotices = []
    params['CLSNotices'].each do |i|
      clsnotice_tmp = CLSNotice.new
      clsnotice_tmp.deserialize(i)
      @CLSNotices << clsnotice_tmp
    end
  end
  @PolicyIds = params['PolicyIds']
  @IsLoginFree = params['IsLoginFree']
end