tencentcloud-sdk-cls 3.0.1136 → 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 +76 -13
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0f3dd0177f6b892cb21e3612316daa03bc1ef4f
4
- data.tar.gz: de51c80b97465c1cac4e08172f07b275c64ae8e9
3
+ metadata.gz: c3e011c88e860939b903fb7062c80b7f7c902147
4
+ data.tar.gz: 41ca5acc054d21a09c2cef6aba2adee1fdca7c84
5
5
  SHA512:
6
- metadata.gz: 8748ac9772f608187934b4b60af03013fd88104df383e7a9d32d13fcd8b362cbc442aa7ad00b6b33077c5d54642d77bd34dded5057c346bc7f075babdea6af12
7
- data.tar.gz: 4aa6018f59e7a4c38eff7ee69022119c487224be211c5a4b4e1763ea4db8a344fb8346c8b22e50fc9105199d3494976588894fb667fc360b348dd1ef1e667f32
6
+ metadata.gz: 4595d283725c6bd4c597438a9c4ffe6dd5e76040b26c9346b3b76e505779f7c189d7968bc71e84e615b518a37b325997c44e4a3d4ca48eae0433449800b693b3
7
+ data.tar.gz: 688b4127be92d5fd17ddeecd0514695d98375946462ff99dd3f6064ecf6aed1a28f26c8a926edaec9f4bec66cde730282a4f93bb443db26ba0e29c9344524ed4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1136
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
 
@@ -1758,12 +1769,16 @@ module TencentCloud
1758
1769
 
1759
1770
  # 自建k8s-工作负载信息
1760
1771
  class ContainerWorkLoadInfo < TencentCloud::Common::AbstractModel
1761
- # @param Kind: 工作负载的类型,支持
1762
- # - deployment
1763
- # - statefulset
1764
- # - daemonset
1765
- # - job
1766
- # - cronjob
1772
+ # @param Kind: 工作负载的类型,支持的取值如下:
1773
+ # - deployment:无状态应用部署控制器。可管理无状态应用的多副本 Pod;支持滚动更新和回滚,实现无缝发布;通过 ReplicaSet 确保指定数量的 Pod 副本持续运行。适合 Web 服务、API 服务、微服务等不需要持久化存储或唯一标识的应用。
1774
+
1775
+ # - statefulset:用于管理有状态应用的控制器。可以为每个 Pod 提供稳定的、唯一的标识(有序的主机名和网络标识);能提供稳定的持久化存储(PVC 随 Pod 的迁移而保留);Pod 的创建、扩展、删除和更新都遵循确定的顺序。适合数据库(MySQL、MongoDB)、消息队列(Kafka、RabbitMQ)、集群应用等需要稳定网络标识和持久化存储的应用。
1776
+
1777
+ # - daemonset:确保所有(或特定)节点上都运行一个 Pod 副本的控制器。会在每个符合条件的 Node 上自动部署并运行一个 Pod;当新节点加入集群时,会自动在新节点上创建 Pod;适合运行节点级别的后台任务或服务,例如日志收集(Fluentd、Filebeat)、节点监控(Node Exporter)、网络插件(Calico、Weave Net)等场景。
1778
+
1779
+ # - job:用于运行一次性任务的控制器。可创建一个或多个 Pod 来执行任务,直到成功完成;当任务完成后,Pod 不会重启(除非配置了重启策略);可以指定任务的并行度和重试次数。适合数据处理、批量任务、数据库迁移、离线计算等一次性执行完成后就退出的任务。
1780
+
1781
+ # - cronjob:基于时间调度的 Job 控制器。类似于 Linux 的 cron,按照预定的时间表周期性地创建并运行 Job。每个调度周期都会创建一个新的 Job 来执行任务。适合定期备份、发送报告、数据清理、定时同步等需要周期性执行的任务。
1767
1782
  # @type Kind: String
1768
1783
  # @param Name: 工作负载的名称
1769
1784
  # @type Name: String
@@ -2042,7 +2057,7 @@ module TencentCloud
2042
2057
  # @type TriggerCount: Integer
2043
2058
  # @param AlarmPeriod: 告警重复的周期,单位是分钟。取值范围是0~1440。
2044
2059
  # @type AlarmPeriod: Integer
2045
- # @param AlarmNoticeIds: 关联的告警通知渠道组列表。-通过[获取通知渠道组列表](https://cloud.tencent.com/document/product/614/56462)获取关联的告警通知渠道组列表
2060
+ # @param AlarmNoticeIds: 关联的告警通知渠道组列表。-通过[获取通知渠道组列表](https://cloud.tencent.com/document/product/614/56462)获取关联的告警通知渠道组列表,和MonitorNotice互斥
2046
2061
  # @type AlarmNoticeIds: Array
2047
2062
  # @param Condition: 告警发送通知的触发条件
2048
2063
  # 注意:
@@ -9075,7 +9090,7 @@ module TencentCloud
9075
9090
  # @type TriggerCount: Integer
9076
9091
  # @param AlarmPeriod: 告警重复的周期。单位是分钟。取值范围是0~1440。
9077
9092
  # @type AlarmPeriod: Integer
9078
- # @param AlarmNoticeIds: 关联的告警通知渠道列表。-通过[获取通知渠道组列表](https://cloud.tencent.com/document/product/614/56462)获取告警通知渠道列表
9093
+ # @param AlarmNoticeIds: 关联的告警通知渠道组列表。-通过[获取通知渠道组列表](https://cloud.tencent.com/document/product/614/56462)获取关联的告警通知渠道组列表,和MonitorNotice互斥
9079
9094
  # @type AlarmNoticeIds: Array
9080
9095
  # @param AlarmTargets: 监控对象列表。
9081
9096
  # @type AlarmTargets: Array
@@ -10617,6 +10632,54 @@ module TencentCloud
10617
10632
  end
10618
10633
  end
10619
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
+
10620
10683
  # 告警策略中监控任务的执行时间点
10621
10684
  class MonitorTime < TencentCloud::Common::AbstractModel
10622
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.1136
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-04 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
@@ -34,8 +34,8 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - lib/tencentcloud-sdk-cls.rb
37
- - lib/v20201016/client.rb
38
37
  - lib/v20201016/models.rb
38
+ - lib/v20201016/client.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: