Class: TencentCloud::Monitor::V20180724::CreateAlarmNoticeRequest

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

Overview

CreateAlarmNotice请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_module = nil, name = nil, noticetype = nil, noticelanguage = nil, usernotices = nil, urlnotices = nil, clsnotices = nil, tags = nil, isloginfree = nil) ⇒ CreateAlarmNoticeRequest

Returns a new instance of CreateAlarmNoticeRequest.



1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
# File 'lib/v20180724/models.rb', line 1568

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

Instance Attribute Details

#CLSNoticesObject

Parameters:

  • Module:

    模块名,这里填“monitor”

  • Name:

    通知模板名称 60字符以内

  • NoticeType:

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

  • NoticeLanguage:

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

  • UserNotices:

    用户通知 最多5个

  • URLNotices:

    回调通知 最多6个

  • CLSNotices:

    推送CLS日志服务的操作 最多1个

  • Tags:

    模板绑定的标签

  • IsLoginFree:

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



1566
1567
1568
# File 'lib/v20180724/models.rb', line 1566

def CLSNotices
  @CLSNotices
end

#IsLoginFreeObject

Parameters:

  • Module:

    模块名,这里填“monitor”

  • Name:

    通知模板名称 60字符以内

  • NoticeType:

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

  • NoticeLanguage:

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

  • UserNotices:

    用户通知 最多5个

  • URLNotices:

    回调通知 最多6个

  • CLSNotices:

    推送CLS日志服务的操作 最多1个

  • Tags:

    模板绑定的标签

  • IsLoginFree:

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



1566
1567
1568
# File 'lib/v20180724/models.rb', line 1566

def IsLoginFree
  @IsLoginFree
end

#ModuleObject

Parameters:

  • Module:

    模块名,这里填“monitor”

  • Name:

    通知模板名称 60字符以内

  • NoticeType:

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

  • NoticeLanguage:

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

  • UserNotices:

    用户通知 最多5个

  • URLNotices:

    回调通知 最多6个

  • CLSNotices:

    推送CLS日志服务的操作 最多1个

  • Tags:

    模板绑定的标签

  • IsLoginFree:

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



1566
1567
1568
# File 'lib/v20180724/models.rb', line 1566

def Module
  @Module
end

#NameObject

Parameters:

  • Module:

    模块名,这里填“monitor”

  • Name:

    通知模板名称 60字符以内

  • NoticeType:

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

  • NoticeLanguage:

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

  • UserNotices:

    用户通知 最多5个

  • URLNotices:

    回调通知 最多6个

  • CLSNotices:

    推送CLS日志服务的操作 最多1个

  • Tags:

    模板绑定的标签

  • IsLoginFree:

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



1566
1567
1568
# File 'lib/v20180724/models.rb', line 1566

def Name
  @Name
end

#NoticeLanguageObject

Parameters:

  • Module:

    模块名,这里填“monitor”

  • Name:

    通知模板名称 60字符以内

  • NoticeType:

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

  • NoticeLanguage:

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

  • UserNotices:

    用户通知 最多5个

  • URLNotices:

    回调通知 最多6个

  • CLSNotices:

    推送CLS日志服务的操作 最多1个

  • Tags:

    模板绑定的标签

  • IsLoginFree:

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



1566
1567
1568
# File 'lib/v20180724/models.rb', line 1566

def NoticeLanguage
  @NoticeLanguage
end

#NoticeTypeObject

Parameters:

  • Module:

    模块名,这里填“monitor”

  • Name:

    通知模板名称 60字符以内

  • NoticeType:

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

  • NoticeLanguage:

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

  • UserNotices:

    用户通知 最多5个

  • URLNotices:

    回调通知 最多6个

  • CLSNotices:

    推送CLS日志服务的操作 最多1个

  • Tags:

    模板绑定的标签

  • IsLoginFree:

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



1566
1567
1568
# File 'lib/v20180724/models.rb', line 1566

def NoticeType
  @NoticeType
end

#TagsObject

Parameters:

  • Module:

    模块名,这里填“monitor”

  • Name:

    通知模板名称 60字符以内

  • NoticeType:

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

  • NoticeLanguage:

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

  • UserNotices:

    用户通知 最多5个

  • URLNotices:

    回调通知 最多6个

  • CLSNotices:

    推送CLS日志服务的操作 最多1个

  • Tags:

    模板绑定的标签

  • IsLoginFree:

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



1566
1567
1568
# File 'lib/v20180724/models.rb', line 1566

def Tags
  @Tags
end

#URLNoticesObject

Parameters:

  • Module:

    模块名,这里填“monitor”

  • Name:

    通知模板名称 60字符以内

  • NoticeType:

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

  • NoticeLanguage:

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

  • UserNotices:

    用户通知 最多5个

  • URLNotices:

    回调通知 最多6个

  • CLSNotices:

    推送CLS日志服务的操作 最多1个

  • Tags:

    模板绑定的标签

  • IsLoginFree:

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



1566
1567
1568
# File 'lib/v20180724/models.rb', line 1566

def URLNotices
  @URLNotices
end

#UserNoticesObject

Parameters:

  • Module:

    模块名,这里填“monitor”

  • Name:

    通知模板名称 60字符以内

  • NoticeType:

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

  • NoticeLanguage:

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

  • UserNotices:

    用户通知 最多5个

  • URLNotices:

    回调通知 最多6个

  • CLSNotices:

    推送CLS日志服务的操作 最多1个

  • Tags:

    模板绑定的标签

  • IsLoginFree:

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



1566
1567
1568
# File 'lib/v20180724/models.rb', line 1566

def UserNotices
  @UserNotices
end

Instance Method Details

#deserialize(params) ⇒ Object



1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
# File 'lib/v20180724/models.rb', line 1580

def deserialize(params)
  @Module = params['Module']
  @Name = params['Name']
  @NoticeType = params['NoticeType']
  @NoticeLanguage = params['NoticeLanguage']
  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
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @IsLoginFree = params['IsLoginFree']
end