tencentcloud-sdk-python-cls 3.0.875__tar.gz → 3.0.876__tar.gz

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 (14) hide show
  1. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/tencentcloud/__init__.py +1 -1
  3. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/tencentcloud/cls/v20201016/cls_client.py +23 -0
  4. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/tencentcloud/cls/v20201016/models.py +234 -0
  5. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/tencentcloud_sdk_python_cls.egg-info/PKG-INFO +1 -1
  6. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/README.rst +0 -0
  7. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/setup.cfg +0 -0
  8. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/setup.py +0 -0
  9. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/tencentcloud/cls/__init__.py +0 -0
  10. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/tencentcloud/cls/v20201016/__init__.py +0 -0
  11. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/tencentcloud/cls/v20201016/errorcodes.py +0 -0
  12. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/tencentcloud_sdk_python_cls.egg-info/SOURCES.txt +0 -0
  13. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/tencentcloud_sdk_python_cls.egg-info/dependency_links.txt +0 -0
  14. {tencentcloud-sdk-python-cls-3.0.875 → tencentcloud-sdk-python-cls-3.0.876}/tencentcloud_sdk_python_cls.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-cls
3
- Version: 3.0.875
3
+ Version: 3.0.876
4
4
  Summary: Tencent Cloud Cls SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.875'
17
+ __version__ = '3.0.876'
@@ -716,6 +716,29 @@ class ClsClient(AbstractClient):
716
716
  raise TencentCloudSDKException(e.message, e.message)
717
717
 
718
718
 
719
+ def DescribeAlertRecordHistory(self, request):
720
+ """获取告警历史,例如今天未恢复的告警
721
+
722
+ :param request: Request instance for DescribeAlertRecordHistory.
723
+ :type request: :class:`tencentcloud.cls.v20201016.models.DescribeAlertRecordHistoryRequest`
724
+ :rtype: :class:`tencentcloud.cls.v20201016.models.DescribeAlertRecordHistoryResponse`
725
+
726
+ """
727
+ try:
728
+ params = request._serialize()
729
+ headers = request.headers
730
+ body = self.call("DescribeAlertRecordHistory", params, headers=headers)
731
+ response = json.loads(body)
732
+ model = models.DescribeAlertRecordHistoryResponse()
733
+ model._deserialize(response["Response"])
734
+ return model
735
+ except Exception as e:
736
+ if isinstance(e, TencentCloudSDKException):
737
+ raise
738
+ else:
739
+ raise TencentCloudSDKException(e.message, e.message)
740
+
741
+
719
742
  def DescribeConfigExtras(self, request):
720
743
  """本接口用于获取特殊采集配置,特殊采集配置应用于自建K8S环境的采集Agent
721
744
 
@@ -349,6 +349,132 @@ class AlarmTargetInfo(AbstractModel):
349
349
 
350
350
 
351
351
 
352
+ class AlertHistoryNotice(AbstractModel):
353
+ """告警通知渠道组详情
354
+
355
+ """
356
+
357
+ def __init__(self):
358
+ r"""
359
+ :param Name: 通知渠道组名称
360
+ :type Name: str
361
+ :param AlarmNoticeId: 通知渠道组ID
362
+ :type AlarmNoticeId: str
363
+ """
364
+ self.Name = None
365
+ self.AlarmNoticeId = None
366
+
367
+
368
+ def _deserialize(self, params):
369
+ self.Name = params.get("Name")
370
+ self.AlarmNoticeId = params.get("AlarmNoticeId")
371
+ memeber_set = set(params.keys())
372
+ for name, value in vars(self).items():
373
+ if name in memeber_set:
374
+ memeber_set.remove(name)
375
+ if len(memeber_set) > 0:
376
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
377
+
378
+
379
+
380
+ class AlertHistoryRecord(AbstractModel):
381
+ """告警历史详情
382
+
383
+ """
384
+
385
+ def __init__(self):
386
+ r"""
387
+ :param RecordId: 告警历史ID
388
+ :type RecordId: str
389
+ :param AlarmId: 告警策略ID
390
+ :type AlarmId: str
391
+ :param AlarmName: 告警策略名称
392
+ :type AlarmName: str
393
+ :param TopicId: 监控对象ID
394
+ :type TopicId: str
395
+ :param TopicName: 监控对象名称
396
+ :type TopicName: str
397
+ :param Region: 监控对象所属地域
398
+ :type Region: str
399
+ :param Trigger: 触发条件
400
+ :type Trigger: str
401
+ :param TriggerCount: 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警
402
+ :type TriggerCount: int
403
+ :param AlarmPeriod: 告警通知发送频率,单位为分钟
404
+ :type AlarmPeriod: int
405
+ :param Notices: 通知渠道组
406
+ :type Notices: list of AlertHistoryNotice
407
+ :param Duration: 告警持续时间,单位为分钟
408
+ :type Duration: int
409
+ :param Status: 告警状态,0代表未恢复,1代表已恢复,2代表已失效
410
+ :type Status: int
411
+ :param CreateTime: 告警发生时间,毫秒级Unix时间戳
412
+ :type CreateTime: int
413
+ :param GroupTriggerCondition: 告警分组触发时对应的分组信息
414
+ 注意:此字段可能返回 null,表示取不到有效值。
415
+ :type GroupTriggerCondition: list of GroupTriggerConditionInfo
416
+ :param AlarmLevel: 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical)
417
+ 注意:此字段可能返回 null,表示取不到有效值。
418
+ :type AlarmLevel: int
419
+ :param MonitorObjectType: 监控对象类型。
420
+ 0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。
421
+ 注意:此字段可能返回 null,表示取不到有效值。
422
+ :type MonitorObjectType: int
423
+ """
424
+ self.RecordId = None
425
+ self.AlarmId = None
426
+ self.AlarmName = None
427
+ self.TopicId = None
428
+ self.TopicName = None
429
+ self.Region = None
430
+ self.Trigger = None
431
+ self.TriggerCount = None
432
+ self.AlarmPeriod = None
433
+ self.Notices = None
434
+ self.Duration = None
435
+ self.Status = None
436
+ self.CreateTime = None
437
+ self.GroupTriggerCondition = None
438
+ self.AlarmLevel = None
439
+ self.MonitorObjectType = None
440
+
441
+
442
+ def _deserialize(self, params):
443
+ self.RecordId = params.get("RecordId")
444
+ self.AlarmId = params.get("AlarmId")
445
+ self.AlarmName = params.get("AlarmName")
446
+ self.TopicId = params.get("TopicId")
447
+ self.TopicName = params.get("TopicName")
448
+ self.Region = params.get("Region")
449
+ self.Trigger = params.get("Trigger")
450
+ self.TriggerCount = params.get("TriggerCount")
451
+ self.AlarmPeriod = params.get("AlarmPeriod")
452
+ if params.get("Notices") is not None:
453
+ self.Notices = []
454
+ for item in params.get("Notices"):
455
+ obj = AlertHistoryNotice()
456
+ obj._deserialize(item)
457
+ self.Notices.append(obj)
458
+ self.Duration = params.get("Duration")
459
+ self.Status = params.get("Status")
460
+ self.CreateTime = params.get("CreateTime")
461
+ if params.get("GroupTriggerCondition") is not None:
462
+ self.GroupTriggerCondition = []
463
+ for item in params.get("GroupTriggerCondition"):
464
+ obj = GroupTriggerConditionInfo()
465
+ obj._deserialize(item)
466
+ self.GroupTriggerCondition.append(obj)
467
+ self.AlarmLevel = params.get("AlarmLevel")
468
+ self.MonitorObjectType = params.get("MonitorObjectType")
469
+ memeber_set = set(params.keys())
470
+ for name, value in vars(self).items():
471
+ if name in memeber_set:
472
+ memeber_set.remove(name)
473
+ if len(memeber_set) > 0:
474
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
475
+
476
+
477
+
352
478
  class AnalysisDimensional(AbstractModel):
353
479
  """多维分析的分析维度
354
480
 
@@ -2864,6 +2990,86 @@ class DescribeAlarmsResponse(AbstractModel):
2864
2990
  self.RequestId = params.get("RequestId")
2865
2991
 
2866
2992
 
2993
+ class DescribeAlertRecordHistoryRequest(AbstractModel):
2994
+ """DescribeAlertRecordHistory请求参数结构体
2995
+
2996
+ """
2997
+
2998
+ def __init__(self):
2999
+ r"""
3000
+ :param From: 查询时间范围启始时间,毫秒级unix时间戳
3001
+ :type From: int
3002
+ :param To: 查询时间范围结束时间,毫秒级unix时间戳
3003
+ :type To: int
3004
+ :param Offset: 分页的偏移量,默认值为0。
3005
+ :type Offset: int
3006
+ :param Limit: 分页单页限制数目,最大值100。
3007
+ :type Limit: int
3008
+ :param Filters: - alertId:按照告警策略ID进行过滤。类型:String 必选:否
3009
+ - topicId:按照监控对象ID进行过滤。类型:String 必选:否
3010
+ - status:按照告警状态进行过滤。类型:String 必选:否,0代表未恢复,1代表已恢复,2代表已失效
3011
+ - alarmLevel:按照告警等级进行过滤。类型:String 必选:否,0代表警告,1代表提醒,2代表紧急
3012
+
3013
+ 每次请求的Filters的上限为10,Filter.Values的上限为100。
3014
+ :type Filters: list of Filter
3015
+ """
3016
+ self.From = None
3017
+ self.To = None
3018
+ self.Offset = None
3019
+ self.Limit = None
3020
+ self.Filters = None
3021
+
3022
+
3023
+ def _deserialize(self, params):
3024
+ self.From = params.get("From")
3025
+ self.To = params.get("To")
3026
+ self.Offset = params.get("Offset")
3027
+ self.Limit = params.get("Limit")
3028
+ if params.get("Filters") is not None:
3029
+ self.Filters = []
3030
+ for item in params.get("Filters"):
3031
+ obj = Filter()
3032
+ obj._deserialize(item)
3033
+ self.Filters.append(obj)
3034
+ memeber_set = set(params.keys())
3035
+ for name, value in vars(self).items():
3036
+ if name in memeber_set:
3037
+ memeber_set.remove(name)
3038
+ if len(memeber_set) > 0:
3039
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3040
+
3041
+
3042
+
3043
+ class DescribeAlertRecordHistoryResponse(AbstractModel):
3044
+ """DescribeAlertRecordHistory返回参数结构体
3045
+
3046
+ """
3047
+
3048
+ def __init__(self):
3049
+ r"""
3050
+ :param TotalCount: 告警历史总数
3051
+ :type TotalCount: int
3052
+ :param Records: 告警历史详情
3053
+ :type Records: list of AlertHistoryRecord
3054
+ :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3055
+ :type RequestId: str
3056
+ """
3057
+ self.TotalCount = None
3058
+ self.Records = None
3059
+ self.RequestId = None
3060
+
3061
+
3062
+ def _deserialize(self, params):
3063
+ self.TotalCount = params.get("TotalCount")
3064
+ if params.get("Records") is not None:
3065
+ self.Records = []
3066
+ for item in params.get("Records"):
3067
+ obj = AlertHistoryRecord()
3068
+ obj._deserialize(item)
3069
+ self.Records.append(obj)
3070
+ self.RequestId = params.get("RequestId")
3071
+
3072
+
2867
3073
  class DescribeConfigExtrasRequest(AbstractModel):
2868
3074
  """DescribeConfigExtras请求参数结构体
2869
3075
 
@@ -4512,6 +4718,34 @@ class GetAlarmLogResponse(AbstractModel):
4512
4718
  self.RequestId = params.get("RequestId")
4513
4719
 
4514
4720
 
4721
+ class GroupTriggerConditionInfo(AbstractModel):
4722
+ """分组触发条件
4723
+
4724
+ """
4725
+
4726
+ def __init__(self):
4727
+ r"""
4728
+ :param Key: 分组触发字段名称
4729
+ :type Key: str
4730
+ :param Value: 分组触发字段值
4731
+ :type Value: str
4732
+ """
4733
+ self.Key = None
4734
+ self.Value = None
4735
+
4736
+
4737
+ def _deserialize(self, params):
4738
+ self.Key = params.get("Key")
4739
+ self.Value = params.get("Value")
4740
+ memeber_set = set(params.keys())
4741
+ for name, value in vars(self).items():
4742
+ if name in memeber_set:
4743
+ memeber_set.remove(name)
4744
+ if len(memeber_set) > 0:
4745
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4746
+
4747
+
4748
+
4515
4749
  class HistogramInfo(AbstractModel):
4516
4750
  """直方图详细信息
4517
4751
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-cls
3
- Version: 3.0.875
3
+ Version: 3.0.876
4
4
  Summary: Tencent Cloud Cls SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud