tencentcloud-sdk-cls 3.0.639 → 3.0.641

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20201016/models.rb +237 -20
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c94d90cd3fa2f8891db6bdde0202463ac00f246
4
- data.tar.gz: de13f1493f2b03451039923b834817dd180db32d
3
+ metadata.gz: 8f4553729c07fb1c43cdf1a5aa4055c7941058be
4
+ data.tar.gz: cba3a1b306cfefb94804e6e8bd860ef56402fb86
5
5
  SHA512:
6
- metadata.gz: e7a4d46161514a064fecd56b977016e292d07546b6401783b488c2e97767e1de1586847425bf9843552747ae59a95ca0d5efb78f0b067ada2b5b4c8ef7a4b22a
7
- data.tar.gz: 8157171e443e5ee16930befd714456c0e2493cc1d13664a63bafe3bc9250f9f8d1c8e2e852c2dfd43cdfe0b572d96381dff8ab8754da4938eeb82fc42e00a0dc
6
+ metadata.gz: 9d90ab999c24af936bf9497dc27f6c409baaf41b302813a095b42c4ca8f4f5ffa55c0219c30d27b991e8d51666858ee6ed099d4c1d296056fcb801bc30bef48c
7
+ data.tar.gz: 40a9482b4581936403468f462a9b8509518c25c3175a91e8bfb654b464d34e555b3e6bcd4cd853dba55ee44d0b71a4a0ffb4f7bf425fd8180de773be9547bd60
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.639
1
+ 3.0.641
@@ -60,8 +60,10 @@ module TencentCloud
60
60
  # 告警多维分析一些配置信息
61
61
  class AlarmAnalysisConfig < TencentCloud::Common::AbstractModel
62
62
  # @param Key: 键
63
+ # 注意:此字段可能返回 null,表示取不到有效值。
63
64
  # @type Key: String
64
65
  # @param Value: 值
66
+ # 注意:此字段可能返回 null,表示取不到有效值。
65
67
  # @type Value: String
66
68
 
67
69
  attr_accessor :Key, :Value
@@ -110,10 +112,14 @@ module TencentCloud
110
112
  # @param Analysis: 多维分析设置
111
113
  # 注意:此字段可能返回 null,表示取不到有效值。
112
114
  # @type Analysis: Array
115
+ # @param MultiConditions: 多触发条件。
116
+
117
+ # 注意:此字段可能返回 null,表示取不到有效值。
118
+ # @type MultiConditions: Array
113
119
 
114
- attr_accessor :Name, :AlarmTargets, :MonitorTime, :Condition, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :Status, :AlarmId, :CreateTime, :UpdateTime, :MessageTemplate, :CallBack, :Analysis
120
+ attr_accessor :Name, :AlarmTargets, :MonitorTime, :Condition, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :Status, :AlarmId, :CreateTime, :UpdateTime, :MessageTemplate, :CallBack, :Analysis, :MultiConditions
115
121
 
116
- 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)
122
+ 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, multiconditions=nil)
117
123
  @Name = name
118
124
  @AlarmTargets = alarmtargets
119
125
  @MonitorTime = monitortime
@@ -128,6 +134,7 @@ module TencentCloud
128
134
  @MessageTemplate = messagetemplate
129
135
  @CallBack = callback
130
136
  @Analysis = analysis
137
+ @MultiConditions = multiconditions
131
138
  end
132
139
 
133
140
  def deserialize(params)
@@ -165,6 +172,14 @@ module TencentCloud
165
172
  @Analysis << analysisdimensional_tmp
166
173
  end
167
174
  end
175
+ unless params['MultiConditions'].nil?
176
+ @MultiConditions = []
177
+ params['MultiConditions'].each do |i|
178
+ multicondition_tmp = MultiCondition.new
179
+ multicondition_tmp.deserialize(i)
180
+ @MultiConditions << multicondition_tmp
181
+ end
182
+ end
168
183
  end
169
184
  end
170
185
 
@@ -192,10 +207,13 @@ module TencentCloud
192
207
  # @param UpdateTime: 最近更新时间。
193
208
  # 注意:此字段可能返回 null,表示取不到有效值。
194
209
  # @type UpdateTime: String
210
+ # @param NoticeRules: 通知规则。
211
+ # 注意:此字段可能返回 null,表示取不到有效值。
212
+ # @type NoticeRules: Array
195
213
 
196
- attr_accessor :Name, :Type, :NoticeReceivers, :WebCallbacks, :AlarmNoticeId, :CreateTime, :UpdateTime
214
+ attr_accessor :Name, :Type, :NoticeReceivers, :WebCallbacks, :AlarmNoticeId, :CreateTime, :UpdateTime, :NoticeRules
197
215
 
198
- def initialize(name=nil, type=nil, noticereceivers=nil, webcallbacks=nil, alarmnoticeid=nil, createtime=nil, updatetime=nil)
216
+ def initialize(name=nil, type=nil, noticereceivers=nil, webcallbacks=nil, alarmnoticeid=nil, createtime=nil, updatetime=nil, noticerules=nil)
199
217
  @Name = name
200
218
  @Type = type
201
219
  @NoticeReceivers = noticereceivers
@@ -203,6 +221,7 @@ module TencentCloud
203
221
  @AlarmNoticeId = alarmnoticeid
204
222
  @CreateTime = createtime
205
223
  @UpdateTime = updatetime
224
+ @NoticeRules = noticerules
206
225
  end
207
226
 
208
227
  def deserialize(params)
@@ -227,26 +246,41 @@ module TencentCloud
227
246
  @AlarmNoticeId = params['AlarmNoticeId']
228
247
  @CreateTime = params['CreateTime']
229
248
  @UpdateTime = params['UpdateTime']
249
+ unless params['NoticeRules'].nil?
250
+ @NoticeRules = []
251
+ params['NoticeRules'].each do |i|
252
+ noticerule_tmp = NoticeRule.new
253
+ noticerule_tmp.deserialize(i)
254
+ @NoticeRules << noticerule_tmp
255
+ end
256
+ end
230
257
  end
231
258
  end
232
259
 
233
260
  # 告警对象
234
261
  class AlarmTarget < TencentCloud::Common::AbstractModel
235
262
  # @param TopicId: 日志主题ID。
263
+ # 注意:此字段可能返回 null,表示取不到有效值。
236
264
  # @type TopicId: String
237
265
  # @param Query: 查询语句。
266
+ # 注意:此字段可能返回 null,表示取不到有效值。
238
267
  # @type Query: String
239
268
  # @param Number: 告警对象序号;从1开始递增。
269
+ # 注意:此字段可能返回 null,表示取不到有效值。
240
270
  # @type Number: Integer
241
271
  # @param StartTimeOffset: 查询范围起始时间相对于告警执行时间的偏移,单位为分钟,取值为非正,最大值为0,最小值为-1440。
272
+ # 注意:此字段可能返回 null,表示取不到有效值。
242
273
  # @type StartTimeOffset: Integer
243
274
  # @param EndTimeOffset: 查询范围终止时间相对于告警执行时间的偏移,单位为分钟,取值为非正,须大于StartTimeOffset,最大值为0,最小值为-1440。
275
+ # 注意:此字段可能返回 null,表示取不到有效值。
244
276
  # @type EndTimeOffset: Integer
245
277
  # @param LogsetId: 日志集ID。
278
+ # 注意:此字段可能返回 null,表示取不到有效值。
246
279
  # @type LogsetId: String
247
280
  # @param SyntaxRule: 检索语法规则,默认值为0。
248
281
  # 0:Lucene语法,1:CQL语法。
249
282
  # 详细说明参见<a href="https://cloud.tencent.com/document/product/614/47044#RetrievesConditionalRules" target="_blank">检索条件语法规则</a>
283
+ # 注意:此字段可能返回 null,表示取不到有效值。
250
284
  # @type SyntaxRule: Integer
251
285
 
252
286
  attr_accessor :TopicId, :Query, :Number, :StartTimeOffset, :EndTimeOffset, :LogsetId, :SyntaxRule
@@ -939,6 +973,8 @@ module TencentCloud
939
973
  # @type LogPath: String
940
974
  # @param FilePattern: 日志名称
941
975
  # @type FilePattern: String
976
+ # @param FilePaths: 日志文件信息
977
+ # @type FilePaths: Array
942
978
  # @param IncludeLabels: pod标签信息
943
979
  # 注意:此字段可能返回 null,表示取不到有效值。
944
980
  # @type IncludeLabels: Array
@@ -951,18 +987,23 @@ module TencentCloud
951
987
  # @param ExcludeLabels: 需要排除的pod标签信息
952
988
  # 注意:此字段可能返回 null,表示取不到有效值。
953
989
  # @type ExcludeLabels: Array
990
+ # @param CustomLabels: metadata信息
991
+ # 注意:此字段可能返回 null,表示取不到有效值。
992
+ # @type CustomLabels: Array
954
993
 
955
- attr_accessor :Namespace, :Container, :LogPath, :FilePattern, :IncludeLabels, :WorkLoad, :ExcludeNamespace, :ExcludeLabels
994
+ attr_accessor :Namespace, :Container, :LogPath, :FilePattern, :FilePaths, :IncludeLabels, :WorkLoad, :ExcludeNamespace, :ExcludeLabels, :CustomLabels
956
995
 
957
- def initialize(namespace=nil, container=nil, logpath=nil, filepattern=nil, includelabels=nil, workload=nil, excludenamespace=nil, excludelabels=nil)
996
+ def initialize(namespace=nil, container=nil, logpath=nil, filepattern=nil, filepaths=nil, includelabels=nil, workload=nil, excludenamespace=nil, excludelabels=nil, customlabels=nil)
958
997
  @Namespace = namespace
959
998
  @Container = container
960
999
  @LogPath = logpath
961
1000
  @FilePattern = filepattern
1001
+ @FilePaths = filepaths
962
1002
  @IncludeLabels = includelabels
963
1003
  @WorkLoad = workload
964
1004
  @ExcludeNamespace = excludenamespace
965
1005
  @ExcludeLabels = excludelabels
1006
+ @CustomLabels = customlabels
966
1007
  end
967
1008
 
968
1009
  def deserialize(params)
@@ -970,6 +1011,14 @@ module TencentCloud
970
1011
  @Container = params['Container']
971
1012
  @LogPath = params['LogPath']
972
1013
  @FilePattern = params['FilePattern']
1014
+ unless params['FilePaths'].nil?
1015
+ @FilePaths = []
1016
+ params['FilePaths'].each do |i|
1017
+ filepathinfo_tmp = FilePathInfo.new
1018
+ filepathinfo_tmp.deserialize(i)
1019
+ @FilePaths << filepathinfo_tmp
1020
+ end
1021
+ end
973
1022
  @IncludeLabels = params['IncludeLabels']
974
1023
  unless params['WorkLoad'].nil?
975
1024
  @WorkLoad = ContainerWorkLoadInfo.new
@@ -977,6 +1026,7 @@ module TencentCloud
977
1026
  end
978
1027
  @ExcludeNamespace = params['ExcludeNamespace']
979
1028
  @ExcludeLabels = params['ExcludeLabels']
1029
+ @CustomLabels = params['CustomLabels']
980
1030
  end
981
1031
  end
982
1032
 
@@ -1002,10 +1052,13 @@ module TencentCloud
1002
1052
  # @param ExcludeLabels: 需要排除的pod标签信息
1003
1053
  # 注意:此字段可能返回 null,表示取不到有效值。
1004
1054
  # @type ExcludeLabels: Array
1055
+ # @param CustomLabels: metadata信息
1056
+ # 注意:此字段可能返回 null,表示取不到有效值。
1057
+ # @type CustomLabels: Array
1005
1058
 
1006
- attr_accessor :AllContainers, :Container, :Namespace, :IncludeLabels, :WorkLoads, :ExcludeNamespace, :ExcludeLabels
1059
+ attr_accessor :AllContainers, :Container, :Namespace, :IncludeLabels, :WorkLoads, :ExcludeNamespace, :ExcludeLabels, :CustomLabels
1007
1060
 
1008
- def initialize(allcontainers=nil, container=nil, namespace=nil, includelabels=nil, workloads=nil, excludenamespace=nil, excludelabels=nil)
1061
+ def initialize(allcontainers=nil, container=nil, namespace=nil, includelabels=nil, workloads=nil, excludenamespace=nil, excludelabels=nil, customlabels=nil)
1009
1062
  @AllContainers = allcontainers
1010
1063
  @Container = container
1011
1064
  @Namespace = namespace
@@ -1013,6 +1066,7 @@ module TencentCloud
1013
1066
  @WorkLoads = workloads
1014
1067
  @ExcludeNamespace = excludenamespace
1015
1068
  @ExcludeLabels = excludelabels
1069
+ @CustomLabels = customlabels
1016
1070
  end
1017
1071
 
1018
1072
  def deserialize(params)
@@ -1030,6 +1084,7 @@ module TencentCloud
1030
1084
  end
1031
1085
  @ExcludeNamespace = params['ExcludeNamespace']
1032
1086
  @ExcludeLabels = params['ExcludeLabels']
1087
+ @CustomLabels = params['CustomLabels']
1033
1088
  end
1034
1089
  end
1035
1090
 
@@ -1207,14 +1262,22 @@ module TencentCloud
1207
1262
  # @type NoticeReceivers: Array
1208
1263
  # @param WebCallbacks: 接口回调信息(包括企业微信)。
1209
1264
  # @type WebCallbacks: Array
1265
+ # @param NoticeRules: 通知规则。
1266
+
1267
+ # 注意:
1268
+
1269
+ # - Type、NoticeReceivers和WebCallbacks是一组配置,NoticeRules是另一组配置,2组配置互斥。
1270
+
1271
+ # @type NoticeRules: Array
1210
1272
 
1211
- attr_accessor :Name, :Type, :NoticeReceivers, :WebCallbacks
1273
+ attr_accessor :Name, :Type, :NoticeReceivers, :WebCallbacks, :NoticeRules
1212
1274
 
1213
- def initialize(name=nil, type=nil, noticereceivers=nil, webcallbacks=nil)
1275
+ def initialize(name=nil, type=nil, noticereceivers=nil, webcallbacks=nil, noticerules=nil)
1214
1276
  @Name = name
1215
1277
  @Type = type
1216
1278
  @NoticeReceivers = noticereceivers
1217
1279
  @WebCallbacks = webcallbacks
1280
+ @NoticeRules = noticerules
1218
1281
  end
1219
1282
 
1220
1283
  def deserialize(params)
@@ -1236,6 +1299,14 @@ module TencentCloud
1236
1299
  @WebCallbacks << webcallback_tmp
1237
1300
  end
1238
1301
  end
1302
+ unless params['NoticeRules'].nil?
1303
+ @NoticeRules = []
1304
+ params['NoticeRules'].each do |i|
1305
+ noticerule_tmp = NoticeRule.new
1306
+ noticerule_tmp.deserialize(i)
1307
+ @NoticeRules << noticerule_tmp
1308
+ end
1309
+ end
1239
1310
  end
1240
1311
  end
1241
1312
 
@@ -1267,14 +1338,25 @@ module TencentCloud
1267
1338
  # @type AlarmTargets: Array
1268
1339
  # @param MonitorTime: 监控任务运行时间点。
1269
1340
  # @type MonitorTime: :class:`Tencentcloud::Cls.v20201016.models.MonitorTime`
1270
- # @param Condition: 触发条件。
1271
- # @type Condition: String
1272
1341
  # @param TriggerCount: 持续周期。持续满足触发条件TriggerCount个周期后,再进行告警;最小值为1,最大值为10。
1273
1342
  # @type TriggerCount: Integer
1274
1343
  # @param AlarmPeriod: 告警重复的周期。单位是分钟。取值范围是0~1440。
1275
1344
  # @type AlarmPeriod: Integer
1276
1345
  # @param AlarmNoticeIds: 关联的告警通知模板列表。
1277
1346
  # @type AlarmNoticeIds: Array
1347
+ # @param Condition: 触发条件。
1348
+
1349
+ # 注意:
1350
+
1351
+ # - Condition和AlarmLevel是一组配置,MultiConditions是另一组配置,2组配置互斥。
1352
+ # @type Condition: String
1353
+ # @param MultiConditions: 多触发条件。
1354
+
1355
+ # 注意:
1356
+ # - Condition和AlarmLevel是一组配置,MultiConditions是另一组配置,2组配置互斥。</li>
1357
+
1358
+
1359
+ # @type MultiConditions: Array
1278
1360
  # @param Status: 是否开启告警策略。默认值为true
1279
1361
  # @type Status: Boolean
1280
1362
  # @param MessageTemplate: 用户自定义告警内容
@@ -1284,16 +1366,17 @@ module TencentCloud
1284
1366
  # @param Analysis: 多维分析
1285
1367
  # @type Analysis: Array
1286
1368
 
1287
- attr_accessor :Name, :AlarmTargets, :MonitorTime, :Condition, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :Status, :MessageTemplate, :CallBack, :Analysis
1369
+ attr_accessor :Name, :AlarmTargets, :MonitorTime, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :Condition, :MultiConditions, :Status, :MessageTemplate, :CallBack, :Analysis
1288
1370
 
1289
- def initialize(name=nil, alarmtargets=nil, monitortime=nil, condition=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, status=nil, messagetemplate=nil, callback=nil, analysis=nil)
1371
+ def initialize(name=nil, alarmtargets=nil, monitortime=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, condition=nil, multiconditions=nil, status=nil, messagetemplate=nil, callback=nil, analysis=nil)
1290
1372
  @Name = name
1291
1373
  @AlarmTargets = alarmtargets
1292
1374
  @MonitorTime = monitortime
1293
- @Condition = condition
1294
1375
  @TriggerCount = triggercount
1295
1376
  @AlarmPeriod = alarmperiod
1296
1377
  @AlarmNoticeIds = alarmnoticeids
1378
+ @Condition = condition
1379
+ @MultiConditions = multiconditions
1297
1380
  @Status = status
1298
1381
  @MessageTemplate = messagetemplate
1299
1382
  @CallBack = callback
@@ -1314,10 +1397,18 @@ module TencentCloud
1314
1397
  @MonitorTime = MonitorTime.new
1315
1398
  @MonitorTime.deserialize(params['MonitorTime'])
1316
1399
  end
1317
- @Condition = params['Condition']
1318
1400
  @TriggerCount = params['TriggerCount']
1319
1401
  @AlarmPeriod = params['AlarmPeriod']
1320
1402
  @AlarmNoticeIds = params['AlarmNoticeIds']
1403
+ @Condition = params['Condition']
1404
+ unless params['MultiConditions'].nil?
1405
+ @MultiConditions = []
1406
+ params['MultiConditions'].each do |i|
1407
+ multicondition_tmp = MultiCondition.new
1408
+ multicondition_tmp.deserialize(i)
1409
+ @MultiConditions << multicondition_tmp
1410
+ end
1411
+ end
1321
1412
  @Status = params['Status']
1322
1413
  @MessageTemplate = params['MessageTemplate']
1323
1414
  unless params['CallBack'].nil?
@@ -5096,6 +5187,26 @@ module TencentCloud
5096
5187
  end
5097
5188
  end
5098
5189
 
5190
+ # 文件路径信息
5191
+ class FilePathInfo < TencentCloud::Common::AbstractModel
5192
+ # @param Path: 文件路径
5193
+ # @type Path: String
5194
+ # @param File: 文件名称
5195
+ # @type File: String
5196
+
5197
+ attr_accessor :Path, :File
5198
+
5199
+ def initialize(path=nil, file=nil)
5200
+ @Path = path
5201
+ @File = file
5202
+ end
5203
+
5204
+ def deserialize(params)
5205
+ @Path = params['Path']
5206
+ @File = params['File']
5207
+ end
5208
+ end
5209
+
5099
5210
  # 过滤器
5100
5211
  class Filter < TencentCloud::Common::AbstractModel
5101
5212
  # @param Key: 需要过滤的字段。
@@ -6090,15 +6201,23 @@ module TencentCloud
6090
6201
  # @type NoticeReceivers: Array
6091
6202
  # @param WebCallbacks: 接口回调信息(包括企业微信)。
6092
6203
  # @type WebCallbacks: Array
6204
+ # @param NoticeRules: 通知规则。
6093
6205
 
6094
- attr_accessor :AlarmNoticeId, :Name, :Type, :NoticeReceivers, :WebCallbacks
6206
+ # 注意:
6095
6207
 
6096
- def initialize(alarmnoticeid=nil, name=nil, type=nil, noticereceivers=nil, webcallbacks=nil)
6208
+ # - Type、NoticeReceivers和WebCallbacks是一组配置,NoticeRules是另一组配置,2组配置互斥。
6209
+ # - 传其中一组数据,则另一组数据置空。
6210
+ # @type NoticeRules: Array
6211
+
6212
+ attr_accessor :AlarmNoticeId, :Name, :Type, :NoticeReceivers, :WebCallbacks, :NoticeRules
6213
+
6214
+ def initialize(alarmnoticeid=nil, name=nil, type=nil, noticereceivers=nil, webcallbacks=nil, noticerules=nil)
6097
6215
  @AlarmNoticeId = alarmnoticeid
6098
6216
  @Name = name
6099
6217
  @Type = type
6100
6218
  @NoticeReceivers = noticereceivers
6101
6219
  @WebCallbacks = webcallbacks
6220
+ @NoticeRules = noticerules
6102
6221
  end
6103
6222
 
6104
6223
  def deserialize(params)
@@ -6121,6 +6240,14 @@ module TencentCloud
6121
6240
  @WebCallbacks << webcallback_tmp
6122
6241
  end
6123
6242
  end
6243
+ unless params['NoticeRules'].nil?
6244
+ @NoticeRules = []
6245
+ params['NoticeRules'].each do |i|
6246
+ noticerule_tmp = NoticeRule.new
6247
+ noticerule_tmp.deserialize(i)
6248
+ @NoticeRules << noticerule_tmp
6249
+ end
6250
+ end
6124
6251
  end
6125
6252
  end
6126
6253
 
@@ -6149,7 +6276,22 @@ module TencentCloud
6149
6276
  # @param MonitorTime: 监控任务运行时间点。
6150
6277
  # @type MonitorTime: :class:`Tencentcloud::Cls.v20201016.models.MonitorTime`
6151
6278
  # @param Condition: 触发条件。
6279
+
6280
+ # 注意:
6281
+ # - Condition和AlarmLevel是一组配置,MultiConditions是另一组配置,2组配置互斥。
6152
6282
  # @type Condition: String
6283
+ # @param AlarmLevel: 告警级别。
6284
+
6285
+ # 0:警告(Warn);1:提醒(Info);2:紧急 (Critical)
6286
+
6287
+ # 注意:
6288
+ # - Condition和AlarmLevel是一组配置,MultiConditions是另一组配置,2组配置互斥。
6289
+ # @type AlarmLevel: Integer
6290
+ # @param MultiConditions: 多触发条件。
6291
+
6292
+ # 注意:
6293
+ # - Condition和AlarmLevel是一组配置,MultiConditions是另一组配置,2组配置互斥。
6294
+ # @type MultiConditions: Array
6153
6295
  # @param TriggerCount: 持续周期。持续满足触发条件TriggerCount个周期后,再进行告警;最小值为1,最大值为10。
6154
6296
  # @type TriggerCount: Integer
6155
6297
  # @param AlarmPeriod: 告警重复的周期。单位是分钟。取值范围是0~1440。
@@ -6167,13 +6309,15 @@ module TencentCloud
6167
6309
  # @param Analysis: 多维分析
6168
6310
  # @type Analysis: Array
6169
6311
 
6170
- attr_accessor :AlarmId, :Name, :MonitorTime, :Condition, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :AlarmTargets, :Status, :MessageTemplate, :CallBack, :Analysis
6312
+ attr_accessor :AlarmId, :Name, :MonitorTime, :Condition, :AlarmLevel, :MultiConditions, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :AlarmTargets, :Status, :MessageTemplate, :CallBack, :Analysis
6171
6313
 
6172
- def initialize(alarmid=nil, name=nil, monitortime=nil, condition=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, alarmtargets=nil, status=nil, messagetemplate=nil, callback=nil, analysis=nil)
6314
+ def initialize(alarmid=nil, name=nil, monitortime=nil, condition=nil, alarmlevel=nil, multiconditions=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, alarmtargets=nil, status=nil, messagetemplate=nil, callback=nil, analysis=nil)
6173
6315
  @AlarmId = alarmid
6174
6316
  @Name = name
6175
6317
  @MonitorTime = monitortime
6176
6318
  @Condition = condition
6319
+ @AlarmLevel = alarmlevel
6320
+ @MultiConditions = multiconditions
6177
6321
  @TriggerCount = triggercount
6178
6322
  @AlarmPeriod = alarmperiod
6179
6323
  @AlarmNoticeIds = alarmnoticeids
@@ -6192,6 +6336,15 @@ module TencentCloud
6192
6336
  @MonitorTime.deserialize(params['MonitorTime'])
6193
6337
  end
6194
6338
  @Condition = params['Condition']
6339
+ @AlarmLevel = params['AlarmLevel']
6340
+ unless params['MultiConditions'].nil?
6341
+ @MultiConditions = []
6342
+ params['MultiConditions'].each do |i|
6343
+ multicondition_tmp = MultiCondition.new
6344
+ multicondition_tmp.deserialize(i)
6345
+ @MultiConditions << multicondition_tmp
6346
+ end
6347
+ end
6195
6348
  @TriggerCount = params['TriggerCount']
6196
6349
  @AlarmPeriod = params['AlarmPeriod']
6197
6350
  @AlarmNoticeIds = params['AlarmNoticeIds']
@@ -7165,6 +7318,29 @@ module TencentCloud
7165
7318
  end
7166
7319
  end
7167
7320
 
7321
+ # 多触发条件。
7322
+ class MultiCondition < TencentCloud::Common::AbstractModel
7323
+ # @param Condition: 触发条件。
7324
+ # 注意:此字段可能返回 null,表示取不到有效值。
7325
+ # @type Condition: String
7326
+ # @param AlarmLevel: 告警级别。0:警告(Warn); 1:提醒(Info); 2:紧急 (Critical)。
7327
+ # <li> 不填则默认为0。
7328
+ # 注意:此字段可能返回 null,表示取不到有效值。
7329
+ # @type AlarmLevel: Integer
7330
+
7331
+ attr_accessor :Condition, :AlarmLevel
7332
+
7333
+ def initialize(condition=nil, alarmlevel=nil)
7334
+ @Condition = condition
7335
+ @AlarmLevel = alarmlevel
7336
+ end
7337
+
7338
+ def deserialize(params)
7339
+ @Condition = params['Condition']
7340
+ @AlarmLevel = params['AlarmLevel']
7341
+ end
7342
+ end
7343
+
7168
7344
  # 多日志主题检索相关信息
7169
7345
  class MultiTopicSearchInformation < TencentCloud::Common::AbstractModel
7170
7346
  # @param TopicId: 要检索分析的日志主题ID
@@ -7228,6 +7404,47 @@ module TencentCloud
7228
7404
  end
7229
7405
  end
7230
7406
 
7407
+ # 通知规则
7408
+ class NoticeRule < TencentCloud::Common::AbstractModel
7409
+ # @param NoticeReceivers: 告警通知模板接收者信息。
7410
+ # 注意:此字段可能返回 null,表示取不到有效值。
7411
+ # @type NoticeReceivers: Array
7412
+ # @param WebCallbacks: 告警通知模板回调信息。
7413
+ # 注意:此字段可能返回 null,表示取不到有效值。
7414
+ # @type WebCallbacks: Array
7415
+ # @param Rule: 匹配规则。
7416
+ # 注意:此字段可能返回 null,表示取不到有效值。
7417
+ # @type Rule: String
7418
+
7419
+ attr_accessor :NoticeReceivers, :WebCallbacks, :Rule
7420
+
7421
+ def initialize(noticereceivers=nil, webcallbacks=nil, rule=nil)
7422
+ @NoticeReceivers = noticereceivers
7423
+ @WebCallbacks = webcallbacks
7424
+ @Rule = rule
7425
+ end
7426
+
7427
+ def deserialize(params)
7428
+ unless params['NoticeReceivers'].nil?
7429
+ @NoticeReceivers = []
7430
+ params['NoticeReceivers'].each do |i|
7431
+ noticereceiver_tmp = NoticeReceiver.new
7432
+ noticereceiver_tmp.deserialize(i)
7433
+ @NoticeReceivers << noticereceiver_tmp
7434
+ end
7435
+ end
7436
+ unless params['WebCallbacks'].nil?
7437
+ @WebCallbacks = []
7438
+ params['WebCallbacks'].each do |i|
7439
+ webcallback_tmp = WebCallback.new
7440
+ webcallback_tmp.deserialize(i)
7441
+ @WebCallbacks << webcallback_tmp
7442
+ end
7443
+ end
7444
+ @Rule = params['Rule']
7445
+ end
7446
+ end
7447
+
7231
7448
  # OpenKafkaConsumer请求参数结构体
7232
7449
  class OpenKafkaConsumerRequest < TencentCloud::Common::AbstractModel
7233
7450
  # @param FromTopicId: 日志主题ID
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.639
4
+ version: 3.0.641
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-18 00:00:00.000000000 Z
11
+ date: 2023-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common