Class: TencentCloud::Cls::V20201016::NoticeContent

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

Overview

通知内容模板详细配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, triggercontent = nil, recoverycontent = nil) ⇒ NoticeContent

Returns a new instance of NoticeContent.



15663
15664
15665
15666
15667
# File 'lib/v20201016/models.rb', line 15663

def initialize(type=nil, triggercontent=nil, recoverycontent=nil)
  @Type = type
  @TriggerContent = triggercontent
  @RecoveryContent = recoverycontent
end

Instance Attribute Details

#RecoveryContent ⇒ Object

Email:邮件;Sms:短信;WeChat:微信;Phone:电话;WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;

Parameters:

  • TriggerContent: —

    告警触发通知内容模板。

  • RecoveryContent: —

    告警恢复通知内容模板。



15661
15662
15663
# File 'lib/v20201016/models.rb', line 15661

def RecoveryContent
  @RecoveryContent
end

#TriggerContent ⇒ Object

Email:邮件;Sms:短信;WeChat:微信;Phone:电话;WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;

Parameters:

  • TriggerContent: —

    告警触发通知内容模板。

  • RecoveryContent: —

    告警恢复通知内容模板。



15661
15662
15663
# File 'lib/v20201016/models.rb', line 15661

def TriggerContent
  @TriggerContent
end

#Type ⇒ Object

Email:邮件;Sms:短信;WeChat:微信;Phone:电话;WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;

Parameters:

  • TriggerContent: —

    告警触发通知内容模板。

  • RecoveryContent: —

    告警恢复通知内容模板。



15661
15662
15663
# File 'lib/v20201016/models.rb', line 15661

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
# File 'lib/v20201016/models.rb', line 15669

def deserialize(params)
  @Type = params['Type']
  unless params['TriggerContent'].nil?
    @TriggerContent = NoticeContentInfo.new
    @TriggerContent.deserialize(params['TriggerContent'])
  end
  unless params['RecoveryContent'].nil?
    @RecoveryContent = NoticeContentInfo.new
    @RecoveryContent.deserialize(params['RecoveryContent'])
  end
end