tencentcloud-sdk-cls 3.0.1137 → 3.0.1139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20201016/models.rb +66 -7
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea60aa86bf9aba5849709b0446bc0d8e8f5e5303
4
- data.tar.gz: 879edfc174745f83e1dd813ac5e49aba47698ec6
3
+ metadata.gz: c3e011c88e860939b903fb7062c80b7f7c902147
4
+ data.tar.gz: 41ca5acc054d21a09c2cef6aba2adee1fdca7c84
5
5
  SHA512:
6
- metadata.gz: 2ba3c5fd76888270f61a045061852b99a0e6bbc1299573d56412c62e4abe78544898be9241a033757c415c73bcf199bc083f73430e072171ff8c66f35f420f68
7
- data.tar.gz: 25b8f3832af9b1cbac10af27b1a8d577298368e4b095634058b3f755e70f5385dc9eb4c2482450d6aa1235173fe520c41066a5ec985d25c3e1ff98864895ff2a
6
+ metadata.gz: 4595d283725c6bd4c597438a9c4ffe6dd5e76040b26c9346b3b76e505779f7c189d7968bc71e84e615b518a37b325997c44e4a3d4ca48eae0433449800b693b3
7
+ data.tar.gz: 688b4127be92d5fd17ddeecd0514695d98375946462ff99dd3f6064ecf6aed1a28f26c8a926edaec9f4bec66cde730282a4f93bb443db26ba0e29c9344524ed4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1137
1
+ 3.0.1139
@@ -149,7 +149,7 @@ module TencentCloud
149
149
  # @type TriggerCount: Integer
150
150
  # @param AlarmPeriod: 告警重复的周期。单位是min。取值范围是0~1440。
151
151
  # @type AlarmPeriod: Integer
152
- # @param AlarmNoticeIds: 关联的告警通知模板列表。
152
+ # @param AlarmNoticeIds: 关联的告警通知渠道组列表。-通过[获取通知渠道组列表](https://cloud.tencent.com/document/product/614/56462)获取关联的告警通知渠道组列表,和MonitorNotice互斥
153
153
  # @type AlarmNoticeIds: Array
154
154
  # @param Status: 开启状态。
155
155
  # @type Status: Boolean
@@ -181,10 +181,12 @@ module TencentCloud
181
181
  # @param MultiConditions: 多触发条件。与
182
182
  # Condition互斥。
183
183
  # @type MultiConditions: Array
184
+ # @param MonitorNotice: 云监控通知渠道相关信息,和AlarmNoticeIds互斥
185
+ # @type MonitorNotice: :class:`Tencentcloud::Cls.v20201016.models.MonitorNotice`
184
186
 
185
- attr_accessor :Name, :AlarmTargets, :MonitorTime, :Condition, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :Status, :AlarmId, :CreateTime, :UpdateTime, :MessageTemplate, :CallBack, :Analysis, :GroupTriggerStatus, :GroupTriggerCondition, :Tags, :MonitorObjectType, :AlarmLevel, :Classifications, :MultiConditions
187
+ attr_accessor :Name, :AlarmTargets, :MonitorTime, :Condition, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :Status, :AlarmId, :CreateTime, :UpdateTime, :MessageTemplate, :CallBack, :Analysis, :GroupTriggerStatus, :GroupTriggerCondition, :Tags, :MonitorObjectType, :AlarmLevel, :Classifications, :MultiConditions, :MonitorNotice
186
188
 
187
- def initialize(name=nil, alarmtargets=nil, monitortime=nil, condition=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, status=nil, alarmid=nil, createtime=nil, updatetime=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, tags=nil, monitorobjecttype=nil, alarmlevel=nil, classifications=nil, multiconditions=nil)
189
+ def initialize(name=nil, alarmtargets=nil, monitortime=nil, condition=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, status=nil, alarmid=nil, createtime=nil, updatetime=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, tags=nil, monitorobjecttype=nil, alarmlevel=nil, classifications=nil, multiconditions=nil, monitornotice=nil)
188
190
  @Name = name
189
191
  @AlarmTargets = alarmtargets
190
192
  @MonitorTime = monitortime
@@ -206,6 +208,7 @@ module TencentCloud
206
208
  @AlarmLevel = alarmlevel
207
209
  @Classifications = classifications
208
210
  @MultiConditions = multiconditions
211
+ @MonitorNotice = monitornotice
209
212
  end
210
213
 
211
214
  def deserialize(params)
@@ -271,6 +274,10 @@ module TencentCloud
271
274
  @MultiConditions << multicondition_tmp
272
275
  end
273
276
  end
277
+ unless params['MonitorNotice'].nil?
278
+ @MonitorNotice = MonitorNotice.new
279
+ @MonitorNotice.deserialize(params['MonitorNotice'])
280
+ end
274
281
  end
275
282
  end
276
283
 
@@ -607,10 +614,12 @@ module TencentCloud
607
614
  # @param MonitorObjectType: 监控对象类型。
608
615
  # 0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。
609
616
  # @type MonitorObjectType: Integer
617
+ # @param SendType: 通知渠道类型,0默认代表cls内部通知渠道,1代表云监控通知渠道
618
+ # @type SendType: Integer
610
619
 
611
- attr_accessor :RecordId, :AlarmId, :AlarmName, :TopicId, :TopicName, :Region, :Trigger, :TriggerCount, :AlarmPeriod, :Notices, :Duration, :Status, :CreateTime, :GroupTriggerCondition, :AlarmLevel, :MonitorObjectType
620
+ attr_accessor :RecordId, :AlarmId, :AlarmName, :TopicId, :TopicName, :Region, :Trigger, :TriggerCount, :AlarmPeriod, :Notices, :Duration, :Status, :CreateTime, :GroupTriggerCondition, :AlarmLevel, :MonitorObjectType, :SendType
612
621
 
613
- def initialize(recordid=nil, alarmid=nil, alarmname=nil, topicid=nil, topicname=nil, region=nil, trigger=nil, triggercount=nil, alarmperiod=nil, notices=nil, duration=nil, status=nil, createtime=nil, grouptriggercondition=nil, alarmlevel=nil, monitorobjecttype=nil)
622
+ def initialize(recordid=nil, alarmid=nil, alarmname=nil, topicid=nil, topicname=nil, region=nil, trigger=nil, triggercount=nil, alarmperiod=nil, notices=nil, duration=nil, status=nil, createtime=nil, grouptriggercondition=nil, alarmlevel=nil, monitorobjecttype=nil, sendtype=nil)
614
623
  @RecordId = recordid
615
624
  @AlarmId = alarmid
616
625
  @AlarmName = alarmname
@@ -627,6 +636,7 @@ module TencentCloud
627
636
  @GroupTriggerCondition = grouptriggercondition
628
637
  @AlarmLevel = alarmlevel
629
638
  @MonitorObjectType = monitorobjecttype
639
+ @SendType = sendtype
630
640
  end
631
641
 
632
642
  def deserialize(params)
@@ -660,6 +670,7 @@ module TencentCloud
660
670
  end
661
671
  @AlarmLevel = params['AlarmLevel']
662
672
  @MonitorObjectType = params['MonitorObjectType']
673
+ @SendType = params['SendType']
663
674
  end
664
675
  end
665
676
 
@@ -2046,7 +2057,7 @@ module TencentCloud
2046
2057
  # @type TriggerCount: Integer
2047
2058
  # @param AlarmPeriod: 告警重复的周期,单位是分钟。取值范围是0~1440。
2048
2059
  # @type AlarmPeriod: Integer
2049
- # @param AlarmNoticeIds: 关联的告警通知渠道组列表。-通过[获取通知渠道组列表](https://cloud.tencent.com/document/product/614/56462)获取关联的告警通知渠道组列表
2060
+ # @param AlarmNoticeIds: 关联的告警通知渠道组列表。-通过[获取通知渠道组列表](https://cloud.tencent.com/document/product/614/56462)获取关联的告警通知渠道组列表,和MonitorNotice互斥
2050
2061
  # @type AlarmNoticeIds: Array
2051
2062
  # @param Condition: 告警发送通知的触发条件
2052
2063
  # 注意:
@@ -9079,7 +9090,7 @@ module TencentCloud
9079
9090
  # @type TriggerCount: Integer
9080
9091
  # @param AlarmPeriod: 告警重复的周期。单位是分钟。取值范围是0~1440。
9081
9092
  # @type AlarmPeriod: Integer
9082
- # @param AlarmNoticeIds: 关联的告警通知渠道列表。-通过[获取通知渠道组列表](https://cloud.tencent.com/document/product/614/56462)获取告警通知渠道列表
9093
+ # @param AlarmNoticeIds: 关联的告警通知渠道组列表。-通过[获取通知渠道组列表](https://cloud.tencent.com/document/product/614/56462)获取关联的告警通知渠道组列表,和MonitorNotice互斥
9083
9094
  # @type AlarmNoticeIds: Array
9084
9095
  # @param AlarmTargets: 监控对象列表。
9085
9096
  # @type AlarmTargets: Array
@@ -10621,6 +10632,54 @@ module TencentCloud
10621
10632
  end
10622
10633
  end
10623
10634
 
10635
+ # 提供多个Notice信息
10636
+ class MonitorNotice < TencentCloud::Common::AbstractModel
10637
+ # @param Notices: 以数组的形式提供MonitorNoticeRule
10638
+ # @type Notices: Array
10639
+
10640
+ attr_accessor :Notices
10641
+
10642
+ def initialize(notices=nil)
10643
+ @Notices = notices
10644
+ end
10645
+
10646
+ def deserialize(params)
10647
+ unless params['Notices'].nil?
10648
+ @Notices = []
10649
+ params['Notices'].each do |i|
10650
+ monitornoticerule_tmp = MonitorNoticeRule.new
10651
+ monitornoticerule_tmp.deserialize(i)
10652
+ @Notices << monitornoticerule_tmp
10653
+ end
10654
+ end
10655
+ end
10656
+ end
10657
+
10658
+ # 云监控通知渠道组信息
10659
+ class MonitorNoticeRule < TencentCloud::Common::AbstractModel
10660
+ # @param NoticeId: 云监控通知模版ID
10661
+ # @type NoticeId: String
10662
+ # @param ContentTmplId: 云监控内容模版ID,不传默认内容模版
10663
+ # 注意:此字段可能返回 null,表示取不到有效值。
10664
+ # @type ContentTmplId: String
10665
+ # @param AlarmLevels: 告警级别,0:警告(Warn); 1:提醒(Info); 2:紧急 (Critical)
10666
+ # @type AlarmLevels: Array
10667
+
10668
+ attr_accessor :NoticeId, :ContentTmplId, :AlarmLevels
10669
+
10670
+ def initialize(noticeid=nil, contenttmplid=nil, alarmlevels=nil)
10671
+ @NoticeId = noticeid
10672
+ @ContentTmplId = contenttmplid
10673
+ @AlarmLevels = alarmlevels
10674
+ end
10675
+
10676
+ def deserialize(params)
10677
+ @NoticeId = params['NoticeId']
10678
+ @ContentTmplId = params['ContentTmplId']
10679
+ @AlarmLevels = params['AlarmLevels']
10680
+ end
10681
+ end
10682
+
10624
10683
  # 告警策略中监控任务的执行时间点
10625
10684
  class MonitorTime < TencentCloud::Common::AbstractModel
10626
10685
  # @param Type: 执行周期, 可选值:`Period`、`Fixed`、`Cron`。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cls
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1137
4
+ version: 3.0.1139
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-07 00:00:00.000000000 Z
11
+ date: 2025-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common