tencentcloud-sdk-cls 3.0.553 → 3.0.554

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6bc6304c3dd28d12d8075870352db18f1e70fc1
4
- data.tar.gz: 01a67308695d78dc89e55f42f8a459e87c6b3f30
3
+ metadata.gz: b2c90dc94795776b324c48e1fc966ee60528f541
4
+ data.tar.gz: 8b26f19185f29b930e6a984e80244f714ff98fce
5
5
  SHA512:
6
- metadata.gz: 4eae34689d8a4f269eb917bd9259d860bc2da1c5267b68b5846f1f7d3005d5e6c30c0602af3d6601166723a144b94a187c91d1adfe6065838fd550cf52e02019
7
- data.tar.gz: cefbe9052ee945f7ca73dd07c40716fca4fa89ae5df3b52589786b6ad1a13750453bbdd9ad02ee1749b32d8cbb86afbe553ca426c4eb2a2e769768c429d6f36b
6
+ metadata.gz: 99035e1356ce12e7fa4248e90e04bd247fd2c0d852c0d4cb6ed9a406dcb4b275ab33b1717e875bcc6c92683bc349654f40950fce4fe55c7707016c7a25f573f1
7
+ data.tar.gz: 8bfbfd1adc9b7893bc0d8a010e60597b2f63eb3aca68651ed77f7e0e439933c4723b25bb7404ea04a91f699b050438e2e277aa9e9238afcf0451f53df5445825
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.553
1
+ 3.0.554
@@ -749,6 +749,30 @@ module TencentCloud
749
749
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
750
750
  end
751
751
 
752
+ # 获取告警历史,例如今天未恢复的告警
753
+
754
+ # @param request: Request instance for DescribeAlertRecordHistory.
755
+ # @type request: :class:`Tencentcloud::cls::V20201016::DescribeAlertRecordHistoryRequest`
756
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeAlertRecordHistoryResponse`
757
+ def DescribeAlertRecordHistory(request)
758
+ body = send_request('DescribeAlertRecordHistory', request.serialize)
759
+ response = JSON.parse(body)
760
+ if response['Response'].key?('Error') == false
761
+ model = DescribeAlertRecordHistoryResponse.new
762
+ model.deserialize(response['Response'])
763
+ model
764
+ else
765
+ code = response['Response']['Error']['Code']
766
+ message = response['Response']['Error']['Message']
767
+ reqid = response['Response']['RequestId']
768
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
769
+ end
770
+ rescue TencentCloud::Common::TencentCloudSDKException => e
771
+ raise e
772
+ rescue StandardError => e
773
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
+ end
775
+
752
776
  # 本接口用于获取特殊采集配置,特殊采集配置应用于自建K8S环境的采集Agent
753
777
 
754
778
  # @param request: Request instance for DescribeConfigExtras.
@@ -310,6 +310,120 @@ module TencentCloud
310
310
  end
311
311
  end
312
312
 
313
+ # 告警通知渠道组详情
314
+ class AlertHistoryNotice < TencentCloud::Common::AbstractModel
315
+ # @param Name: 通知渠道组名称
316
+ # @type Name: String
317
+ # @param AlarmNoticeId: 通知渠道组ID
318
+ # @type AlarmNoticeId: String
319
+
320
+ attr_accessor :Name, :AlarmNoticeId
321
+
322
+ def initialize(name=nil, alarmnoticeid=nil)
323
+ @Name = name
324
+ @AlarmNoticeId = alarmnoticeid
325
+ end
326
+
327
+ def deserialize(params)
328
+ @Name = params['Name']
329
+ @AlarmNoticeId = params['AlarmNoticeId']
330
+ end
331
+ end
332
+
333
+ # 告警历史详情
334
+ class AlertHistoryRecord < TencentCloud::Common::AbstractModel
335
+ # @param RecordId: 告警历史ID
336
+ # @type RecordId: String
337
+ # @param AlarmId: 告警策略ID
338
+ # @type AlarmId: String
339
+ # @param AlarmName: 告警策略名称
340
+ # @type AlarmName: String
341
+ # @param TopicId: 监控对象ID
342
+ # @type TopicId: String
343
+ # @param TopicName: 监控对象名称
344
+ # @type TopicName: String
345
+ # @param Region: 监控对象所属地域
346
+ # @type Region: String
347
+ # @param Trigger: 触发条件
348
+ # @type Trigger: String
349
+ # @param TriggerCount: 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警
350
+ # @type TriggerCount: Integer
351
+ # @param AlarmPeriod: 告警通知发送频率,单位为分钟
352
+ # @type AlarmPeriod: Integer
353
+ # @param Notices: 通知渠道组
354
+ # @type Notices: Array
355
+ # @param Duration: 告警持续时间,单位为分钟
356
+ # @type Duration: Integer
357
+ # @param Status: 告警状态,0代表未恢复,1代表已恢复,2代表已失效
358
+ # @type Status: Integer
359
+ # @param CreateTime: 告警发生时间,毫秒级Unix时间戳
360
+ # @type CreateTime: Integer
361
+ # @param GroupTriggerCondition: 告警分组触发时对应的分组信息
362
+ # 注意:此字段可能返回 null,表示取不到有效值。
363
+ # @type GroupTriggerCondition: Array
364
+ # @param AlarmLevel: 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical)
365
+ # 注意:此字段可能返回 null,表示取不到有效值。
366
+ # @type AlarmLevel: Integer
367
+ # @param MonitorObjectType: 监控对象类型。
368
+ # 0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。
369
+ # 注意:此字段可能返回 null,表示取不到有效值。
370
+ # @type MonitorObjectType: Integer
371
+
372
+ attr_accessor :RecordId, :AlarmId, :AlarmName, :TopicId, :TopicName, :Region, :Trigger, :TriggerCount, :AlarmPeriod, :Notices, :Duration, :Status, :CreateTime, :GroupTriggerCondition, :AlarmLevel, :MonitorObjectType
373
+
374
+ 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)
375
+ @RecordId = recordid
376
+ @AlarmId = alarmid
377
+ @AlarmName = alarmname
378
+ @TopicId = topicid
379
+ @TopicName = topicname
380
+ @Region = region
381
+ @Trigger = trigger
382
+ @TriggerCount = triggercount
383
+ @AlarmPeriod = alarmperiod
384
+ @Notices = notices
385
+ @Duration = duration
386
+ @Status = status
387
+ @CreateTime = createtime
388
+ @GroupTriggerCondition = grouptriggercondition
389
+ @AlarmLevel = alarmlevel
390
+ @MonitorObjectType = monitorobjecttype
391
+ end
392
+
393
+ def deserialize(params)
394
+ @RecordId = params['RecordId']
395
+ @AlarmId = params['AlarmId']
396
+ @AlarmName = params['AlarmName']
397
+ @TopicId = params['TopicId']
398
+ @TopicName = params['TopicName']
399
+ @Region = params['Region']
400
+ @Trigger = params['Trigger']
401
+ @TriggerCount = params['TriggerCount']
402
+ @AlarmPeriod = params['AlarmPeriod']
403
+ unless params['Notices'].nil?
404
+ @Notices = []
405
+ params['Notices'].each do |i|
406
+ alerthistorynotice_tmp = AlertHistoryNotice.new
407
+ alerthistorynotice_tmp.deserialize(i)
408
+ @Notices << alerthistorynotice_tmp
409
+ end
410
+ end
411
+ @Duration = params['Duration']
412
+ @Status = params['Status']
413
+ @CreateTime = params['CreateTime']
414
+ unless params['GroupTriggerCondition'].nil?
415
+ @GroupTriggerCondition = []
416
+ params['GroupTriggerCondition'].each do |i|
417
+ grouptriggerconditioninfo_tmp = GroupTriggerConditionInfo.new
418
+ grouptriggerconditioninfo_tmp.deserialize(i)
419
+ @GroupTriggerCondition << grouptriggerconditioninfo_tmp
420
+ end
421
+ end
422
+ @AlarmLevel = params['AlarmLevel']
423
+ @MonitorObjectType = params['MonitorObjectType']
424
+ end
425
+ end
426
+
313
427
  # 多维分析的分析维度
314
428
  class AnalysisDimensional < TencentCloud::Common::AbstractModel
315
429
  # @param Name: 分析名称
@@ -2513,6 +2627,81 @@ module TencentCloud
2513
2627
  end
2514
2628
  end
2515
2629
 
2630
+ # DescribeAlertRecordHistory请求参数结构体
2631
+ class DescribeAlertRecordHistoryRequest < TencentCloud::Common::AbstractModel
2632
+ # @param From: 查询时间范围启始时间,毫秒级unix时间戳
2633
+ # @type From: Integer
2634
+ # @param To: 查询时间范围结束时间,毫秒级unix时间戳
2635
+ # @type To: Integer
2636
+ # @param Offset: 分页的偏移量,默认值为0。
2637
+ # @type Offset: Integer
2638
+ # @param Limit: 分页单页限制数目,最大值100。
2639
+ # @type Limit: Integer
2640
+ # @param Filters: - alertId:按照告警策略ID进行过滤。类型:String 必选:否
2641
+ # - topicId:按照监控对象ID进行过滤。类型:String 必选:否
2642
+ # - status:按照告警状态进行过滤。类型:String 必选:否,0代表未恢复,1代表已恢复,2代表已失效
2643
+ # - alarmLevel:按照告警等级进行过滤。类型:String 必选:否,0代表警告,1代表提醒,2代表紧急
2644
+
2645
+ # 每次请求的Filters的上限为10,Filter.Values的上限为100。
2646
+ # @type Filters: Array
2647
+
2648
+ attr_accessor :From, :To, :Offset, :Limit, :Filters
2649
+
2650
+ def initialize(from=nil, to=nil, offset=nil, limit=nil, filters=nil)
2651
+ @From = from
2652
+ @To = to
2653
+ @Offset = offset
2654
+ @Limit = limit
2655
+ @Filters = filters
2656
+ end
2657
+
2658
+ def deserialize(params)
2659
+ @From = params['From']
2660
+ @To = params['To']
2661
+ @Offset = params['Offset']
2662
+ @Limit = params['Limit']
2663
+ unless params['Filters'].nil?
2664
+ @Filters = []
2665
+ params['Filters'].each do |i|
2666
+ filter_tmp = Filter.new
2667
+ filter_tmp.deserialize(i)
2668
+ @Filters << filter_tmp
2669
+ end
2670
+ end
2671
+ end
2672
+ end
2673
+
2674
+ # DescribeAlertRecordHistory返回参数结构体
2675
+ class DescribeAlertRecordHistoryResponse < TencentCloud::Common::AbstractModel
2676
+ # @param TotalCount: 告警历史总数
2677
+ # @type TotalCount: Integer
2678
+ # @param Records: 告警历史详情
2679
+ # @type Records: Array
2680
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2681
+ # @type RequestId: String
2682
+
2683
+ attr_accessor :TotalCount, :Records, :RequestId
2684
+
2685
+ def initialize(totalcount=nil, records=nil, requestid=nil)
2686
+ @TotalCount = totalcount
2687
+ @Records = records
2688
+ @RequestId = requestid
2689
+ end
2690
+
2691
+ def deserialize(params)
2692
+ @TotalCount = params['TotalCount']
2693
+ unless params['Records'].nil?
2694
+ @Records = []
2695
+ params['Records'].each do |i|
2696
+ alerthistoryrecord_tmp = AlertHistoryRecord.new
2697
+ alerthistoryrecord_tmp.deserialize(i)
2698
+ @Records << alerthistoryrecord_tmp
2699
+ end
2700
+ end
2701
+ @RequestId = params['RequestId']
2702
+ end
2703
+ end
2704
+
2516
2705
  # DescribeConfigExtras请求参数结构体
2517
2706
  class DescribeConfigExtrasRequest < TencentCloud::Common::AbstractModel
2518
2707
  # @param Filters: 支持的key: topicId,name, configExtraId, machineGroupId
@@ -3996,6 +4185,26 @@ module TencentCloud
3996
4185
  end
3997
4186
  end
3998
4187
 
4188
+ # 分组触发条件
4189
+ class GroupTriggerConditionInfo < TencentCloud::Common::AbstractModel
4190
+ # @param Key: 分组触发字段名称
4191
+ # @type Key: String
4192
+ # @param Value: 分组触发字段值
4193
+ # @type Value: String
4194
+
4195
+ attr_accessor :Key, :Value
4196
+
4197
+ def initialize(key=nil, value=nil)
4198
+ @Key = key
4199
+ @Value = value
4200
+ end
4201
+
4202
+ def deserialize(params)
4203
+ @Key = params['Key']
4204
+ @Value = params['Value']
4205
+ end
4206
+ end
4207
+
3999
4208
  # 直方图详细信息
4000
4209
  class HistogramInfo < TencentCloud::Common::AbstractModel
4001
4210
  # @param Count: 统计周期内的日志条数
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.553
4
+ version: 3.0.554
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-04-18 00:00:00.000000000 Z
11
+ date: 2023-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common