tencentcloud-sdk-python-cls 3.0.1288__tar.gz → 3.0.1303__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.
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/setup.py +1 -1
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/tencentcloud/cls/v20201016/cls_client.py +92 -0
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/tencentcloud/cls/v20201016/models.py +806 -41
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/tencentcloud_sdk_python_cls.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cls-3.0.1303/tencentcloud_sdk_python_cls.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cls-3.0.1288/tencentcloud_sdk_python_cls.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/README.rst +0 -0
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/tencentcloud/cls/__init__.py +0 -0
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/tencentcloud/cls/v20201016/__init__.py +0 -0
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/tencentcloud/cls/v20201016/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/tencentcloud_sdk_python_cls.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/tencentcloud_sdk_python_cls.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cls-3.0.1288 → tencentcloud-sdk-python-cls-3.0.1303}/tencentcloud_sdk_python_cls.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cls',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1303"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cls SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -631,6 +631,29 @@ class ClsClient(AbstractClient):
|
|
|
631
631
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
632
632
|
|
|
633
633
|
|
|
634
|
+
def CreateWebCallback(self, request):
|
|
635
|
+
"""该接口用于创建告警渠道回调配置。
|
|
636
|
+
|
|
637
|
+
:param request: Request instance for CreateWebCallback.
|
|
638
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.CreateWebCallbackRequest`
|
|
639
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.CreateWebCallbackResponse`
|
|
640
|
+
|
|
641
|
+
"""
|
|
642
|
+
try:
|
|
643
|
+
params = request._serialize()
|
|
644
|
+
headers = request.headers
|
|
645
|
+
body = self.call("CreateWebCallback", params, headers=headers)
|
|
646
|
+
response = json.loads(body)
|
|
647
|
+
model = models.CreateWebCallbackResponse()
|
|
648
|
+
model._deserialize(response["Response"])
|
|
649
|
+
return model
|
|
650
|
+
except Exception as e:
|
|
651
|
+
if isinstance(e, TencentCloudSDKException):
|
|
652
|
+
raise
|
|
653
|
+
else:
|
|
654
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
655
|
+
|
|
656
|
+
|
|
634
657
|
def DeleteAlarm(self, request):
|
|
635
658
|
"""本接口用于删除告警策略。
|
|
636
659
|
|
|
@@ -1114,6 +1137,29 @@ class ClsClient(AbstractClient):
|
|
|
1114
1137
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1115
1138
|
|
|
1116
1139
|
|
|
1140
|
+
def DeleteWebCallback(self, request):
|
|
1141
|
+
"""该接口用于删除告警渠道回调配置。
|
|
1142
|
+
|
|
1143
|
+
:param request: Request instance for DeleteWebCallback.
|
|
1144
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DeleteWebCallbackRequest`
|
|
1145
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DeleteWebCallbackResponse`
|
|
1146
|
+
|
|
1147
|
+
"""
|
|
1148
|
+
try:
|
|
1149
|
+
params = request._serialize()
|
|
1150
|
+
headers = request.headers
|
|
1151
|
+
body = self.call("DeleteWebCallback", params, headers=headers)
|
|
1152
|
+
response = json.loads(body)
|
|
1153
|
+
model = models.DeleteWebCallbackResponse()
|
|
1154
|
+
model._deserialize(response["Response"])
|
|
1155
|
+
return model
|
|
1156
|
+
except Exception as e:
|
|
1157
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1158
|
+
raise
|
|
1159
|
+
else:
|
|
1160
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1161
|
+
|
|
1162
|
+
|
|
1117
1163
|
def DescribeAlarmNotices(self, request):
|
|
1118
1164
|
"""该接口用于获取通知渠道组列表
|
|
1119
1165
|
|
|
@@ -1805,6 +1851,29 @@ class ClsClient(AbstractClient):
|
|
|
1805
1851
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1806
1852
|
|
|
1807
1853
|
|
|
1854
|
+
def DescribeWebCallbacks(self, request):
|
|
1855
|
+
"""获取告警渠道回调配置列表。
|
|
1856
|
+
|
|
1857
|
+
:param request: Request instance for DescribeWebCallbacks.
|
|
1858
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DescribeWebCallbacksRequest`
|
|
1859
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DescribeWebCallbacksResponse`
|
|
1860
|
+
|
|
1861
|
+
"""
|
|
1862
|
+
try:
|
|
1863
|
+
params = request._serialize()
|
|
1864
|
+
headers = request.headers
|
|
1865
|
+
body = self.call("DescribeWebCallbacks", params, headers=headers)
|
|
1866
|
+
response = json.loads(body)
|
|
1867
|
+
model = models.DescribeWebCallbacksResponse()
|
|
1868
|
+
model._deserialize(response["Response"])
|
|
1869
|
+
return model
|
|
1870
|
+
except Exception as e:
|
|
1871
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1872
|
+
raise
|
|
1873
|
+
else:
|
|
1874
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1875
|
+
|
|
1876
|
+
|
|
1808
1877
|
def GetAlarmLog(self, request):
|
|
1809
1878
|
"""本接口用于获取告警策略执行详情
|
|
1810
1879
|
|
|
@@ -2311,6 +2380,29 @@ class ClsClient(AbstractClient):
|
|
|
2311
2380
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2312
2381
|
|
|
2313
2382
|
|
|
2383
|
+
def ModifyWebCallback(self, request):
|
|
2384
|
+
"""该接口用于修改告警渠道回调配置。
|
|
2385
|
+
|
|
2386
|
+
:param request: Request instance for ModifyWebCallback.
|
|
2387
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.ModifyWebCallbackRequest`
|
|
2388
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.ModifyWebCallbackResponse`
|
|
2389
|
+
|
|
2390
|
+
"""
|
|
2391
|
+
try:
|
|
2392
|
+
params = request._serialize()
|
|
2393
|
+
headers = request.headers
|
|
2394
|
+
body = self.call("ModifyWebCallback", params, headers=headers)
|
|
2395
|
+
response = json.loads(body)
|
|
2396
|
+
model = models.ModifyWebCallbackResponse()
|
|
2397
|
+
model._deserialize(response["Response"])
|
|
2398
|
+
return model
|
|
2399
|
+
except Exception as e:
|
|
2400
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2401
|
+
raise
|
|
2402
|
+
else:
|
|
2403
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2404
|
+
|
|
2405
|
+
|
|
2314
2406
|
def OpenKafkaConsumer(self, request):
|
|
2315
2407
|
"""打开Kafka协议消费功能
|
|
2316
2408
|
|
|
@@ -355,6 +355,9 @@ class AlarmInfo(AbstractModel):
|
|
|
355
355
|
:param _AlarmLevel: 告警级别。0:警告(Warn);1:提醒(Info);2:紧急 (Critical)。
|
|
356
356
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
357
357
|
:type AlarmLevel: int
|
|
358
|
+
:param _Classifications: 告警附加分类字段。
|
|
359
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
360
|
+
:type Classifications: list of AlarmClassification
|
|
358
361
|
:param _MultiConditions: 多触发条件。与
|
|
359
362
|
Condition互斥。
|
|
360
363
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -378,6 +381,7 @@ Condition互斥。
|
|
|
378
381
|
self._GroupTriggerCondition = None
|
|
379
382
|
self._MonitorObjectType = None
|
|
380
383
|
self._AlarmLevel = None
|
|
384
|
+
self._Classifications = None
|
|
381
385
|
self._MultiConditions = None
|
|
382
386
|
|
|
383
387
|
@property
|
|
@@ -585,6 +589,18 @@ Condition互斥。
|
|
|
585
589
|
def AlarmLevel(self, AlarmLevel):
|
|
586
590
|
self._AlarmLevel = AlarmLevel
|
|
587
591
|
|
|
592
|
+
@property
|
|
593
|
+
def Classifications(self):
|
|
594
|
+
"""告警附加分类字段。
|
|
595
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
596
|
+
:rtype: list of AlarmClassification
|
|
597
|
+
"""
|
|
598
|
+
return self._Classifications
|
|
599
|
+
|
|
600
|
+
@Classifications.setter
|
|
601
|
+
def Classifications(self, Classifications):
|
|
602
|
+
self._Classifications = Classifications
|
|
603
|
+
|
|
588
604
|
@property
|
|
589
605
|
def MultiConditions(self):
|
|
590
606
|
"""多触发条件。与
|
|
@@ -632,6 +648,12 @@ Condition互斥。
|
|
|
632
648
|
self._GroupTriggerCondition = params.get("GroupTriggerCondition")
|
|
633
649
|
self._MonitorObjectType = params.get("MonitorObjectType")
|
|
634
650
|
self._AlarmLevel = params.get("AlarmLevel")
|
|
651
|
+
if params.get("Classifications") is not None:
|
|
652
|
+
self._Classifications = []
|
|
653
|
+
for item in params.get("Classifications"):
|
|
654
|
+
obj = AlarmClassification()
|
|
655
|
+
obj._deserialize(item)
|
|
656
|
+
self._Classifications.append(obj)
|
|
635
657
|
if params.get("MultiConditions") is not None:
|
|
636
658
|
self._MultiConditions = []
|
|
637
659
|
for item in params.get("MultiConditions"):
|
|
@@ -1873,7 +1895,6 @@ class AnalysisDimensional(AbstractModel):
|
|
|
1873
1895
|
"Key": "SyntaxRule", // 查不到这个字段也是老语法
|
|
1874
1896
|
"Value": "0"//0:Lucene, 1:CQL
|
|
1875
1897
|
}
|
|
1876
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1877
1898
|
:type ConfigInfo: list of AlarmAnalysisConfig
|
|
1878
1899
|
"""
|
|
1879
1900
|
self._Name = None
|
|
@@ -1960,7 +1981,6 @@ class AnalysisDimensional(AbstractModel):
|
|
|
1960
1981
|
"Key": "SyntaxRule", // 查不到这个字段也是老语法
|
|
1961
1982
|
"Value": "0"//0:Lucene, 1:CQL
|
|
1962
1983
|
}
|
|
1963
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1964
1984
|
:rtype: list of AlarmAnalysisConfig
|
|
1965
1985
|
"""
|
|
1966
1986
|
return self._ConfigInfo
|
|
@@ -3709,7 +3729,7 @@ class ConsoleSharingConfig(AbstractModel):
|
|
|
3709
3729
|
- datasight内网匿名分享(若开启):datasight内网域名
|
|
3710
3730
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3711
3731
|
:type Domain: str
|
|
3712
|
-
:param _VerifyCode:
|
|
3732
|
+
:param _VerifyCode: 分享链接加密访问验证码。支持0-9和a-z(不区分大小写)在内的6个字符,可为空,代表免验证码访问
|
|
3713
3733
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3714
3734
|
:type VerifyCode: str
|
|
3715
3735
|
:param _StartTime: 默认查询范围的开始时间点,支持绝对时间(13位Unix时间戳)或相对时间表达式
|
|
@@ -3804,7 +3824,7 @@ class ConsoleSharingConfig(AbstractModel):
|
|
|
3804
3824
|
|
|
3805
3825
|
@property
|
|
3806
3826
|
def VerifyCode(self):
|
|
3807
|
-
"""
|
|
3827
|
+
"""分享链接加密访问验证码。支持0-9和a-z(不区分大小写)在内的6个字符,可为空,代表免验证码访问
|
|
3808
3828
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3809
3829
|
:rtype: str
|
|
3810
3830
|
"""
|
|
@@ -6116,7 +6136,7 @@ class CreateConfigExtraRequest(AbstractModel):
|
|
|
6116
6136
|
:type ContainerFile: :class:`tencentcloud.cls.v20201016.models.ContainerFileInfo`
|
|
6117
6137
|
:param _ContainerStdout: 容器标准输出类型配置。
|
|
6118
6138
|
:type ContainerStdout: :class:`tencentcloud.cls.v20201016.models.ContainerStdoutInfo`
|
|
6119
|
-
:param _LogFormat: 日志格式化方式,用于容器采集场景。
|
|
6139
|
+
:param _LogFormat: 日志格式化方式,用于容器采集场景。 - 已废弃
|
|
6120
6140
|
- stdout-docker-json:用于docker容器采集场景
|
|
6121
6141
|
- stdout-containerd:用于containerd容器采集场景
|
|
6122
6142
|
:type LogFormat: str
|
|
@@ -6294,7 +6314,7 @@ class CreateConfigExtraRequest(AbstractModel):
|
|
|
6294
6314
|
|
|
6295
6315
|
@property
|
|
6296
6316
|
def LogFormat(self):
|
|
6297
|
-
"""日志格式化方式,用于容器采集场景。
|
|
6317
|
+
"""日志格式化方式,用于容器采集场景。 - 已废弃
|
|
6298
6318
|
- stdout-docker-json:用于docker容器采集场景
|
|
6299
6319
|
- stdout-containerd:用于containerd容器采集场景
|
|
6300
6320
|
:rtype: str
|
|
@@ -9484,6 +9504,153 @@ class CreateTopicResponse(AbstractModel):
|
|
|
9484
9504
|
self._RequestId = params.get("RequestId")
|
|
9485
9505
|
|
|
9486
9506
|
|
|
9507
|
+
class CreateWebCallbackRequest(AbstractModel):
|
|
9508
|
+
"""CreateWebCallback请求参数结构体
|
|
9509
|
+
|
|
9510
|
+
"""
|
|
9511
|
+
|
|
9512
|
+
def __init__(self):
|
|
9513
|
+
r"""
|
|
9514
|
+
:param _Name: 通知内容名称。
|
|
9515
|
+
:type Name: str
|
|
9516
|
+
:param _Type: 渠道类型。
|
|
9517
|
+
|
|
9518
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调。
|
|
9519
|
+
:type Type: str
|
|
9520
|
+
:param _Webhook: Webhook地址。
|
|
9521
|
+
:type Webhook: str
|
|
9522
|
+
:param _Method: 请求方式。 支持POST、PUT。
|
|
9523
|
+
|
|
9524
|
+
当Type为Http时,必填。
|
|
9525
|
+
:type Method: str
|
|
9526
|
+
:param _Key: 秘钥。
|
|
9527
|
+
:type Key: str
|
|
9528
|
+
"""
|
|
9529
|
+
self._Name = None
|
|
9530
|
+
self._Type = None
|
|
9531
|
+
self._Webhook = None
|
|
9532
|
+
self._Method = None
|
|
9533
|
+
self._Key = None
|
|
9534
|
+
|
|
9535
|
+
@property
|
|
9536
|
+
def Name(self):
|
|
9537
|
+
"""通知内容名称。
|
|
9538
|
+
:rtype: str
|
|
9539
|
+
"""
|
|
9540
|
+
return self._Name
|
|
9541
|
+
|
|
9542
|
+
@Name.setter
|
|
9543
|
+
def Name(self, Name):
|
|
9544
|
+
self._Name = Name
|
|
9545
|
+
|
|
9546
|
+
@property
|
|
9547
|
+
def Type(self):
|
|
9548
|
+
"""渠道类型。
|
|
9549
|
+
|
|
9550
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调。
|
|
9551
|
+
:rtype: str
|
|
9552
|
+
"""
|
|
9553
|
+
return self._Type
|
|
9554
|
+
|
|
9555
|
+
@Type.setter
|
|
9556
|
+
def Type(self, Type):
|
|
9557
|
+
self._Type = Type
|
|
9558
|
+
|
|
9559
|
+
@property
|
|
9560
|
+
def Webhook(self):
|
|
9561
|
+
"""Webhook地址。
|
|
9562
|
+
:rtype: str
|
|
9563
|
+
"""
|
|
9564
|
+
return self._Webhook
|
|
9565
|
+
|
|
9566
|
+
@Webhook.setter
|
|
9567
|
+
def Webhook(self, Webhook):
|
|
9568
|
+
self._Webhook = Webhook
|
|
9569
|
+
|
|
9570
|
+
@property
|
|
9571
|
+
def Method(self):
|
|
9572
|
+
"""请求方式。 支持POST、PUT。
|
|
9573
|
+
|
|
9574
|
+
当Type为Http时,必填。
|
|
9575
|
+
:rtype: str
|
|
9576
|
+
"""
|
|
9577
|
+
return self._Method
|
|
9578
|
+
|
|
9579
|
+
@Method.setter
|
|
9580
|
+
def Method(self, Method):
|
|
9581
|
+
self._Method = Method
|
|
9582
|
+
|
|
9583
|
+
@property
|
|
9584
|
+
def Key(self):
|
|
9585
|
+
"""秘钥。
|
|
9586
|
+
:rtype: str
|
|
9587
|
+
"""
|
|
9588
|
+
return self._Key
|
|
9589
|
+
|
|
9590
|
+
@Key.setter
|
|
9591
|
+
def Key(self, Key):
|
|
9592
|
+
self._Key = Key
|
|
9593
|
+
|
|
9594
|
+
|
|
9595
|
+
def _deserialize(self, params):
|
|
9596
|
+
self._Name = params.get("Name")
|
|
9597
|
+
self._Type = params.get("Type")
|
|
9598
|
+
self._Webhook = params.get("Webhook")
|
|
9599
|
+
self._Method = params.get("Method")
|
|
9600
|
+
self._Key = params.get("Key")
|
|
9601
|
+
memeber_set = set(params.keys())
|
|
9602
|
+
for name, value in vars(self).items():
|
|
9603
|
+
property_name = name[1:]
|
|
9604
|
+
if property_name in memeber_set:
|
|
9605
|
+
memeber_set.remove(property_name)
|
|
9606
|
+
if len(memeber_set) > 0:
|
|
9607
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9608
|
+
|
|
9609
|
+
|
|
9610
|
+
|
|
9611
|
+
class CreateWebCallbackResponse(AbstractModel):
|
|
9612
|
+
"""CreateWebCallback返回参数结构体
|
|
9613
|
+
|
|
9614
|
+
"""
|
|
9615
|
+
|
|
9616
|
+
def __init__(self):
|
|
9617
|
+
r"""
|
|
9618
|
+
:param _WebCallbackId: 回调配置ID。
|
|
9619
|
+
:type WebCallbackId: str
|
|
9620
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9621
|
+
:type RequestId: str
|
|
9622
|
+
"""
|
|
9623
|
+
self._WebCallbackId = None
|
|
9624
|
+
self._RequestId = None
|
|
9625
|
+
|
|
9626
|
+
@property
|
|
9627
|
+
def WebCallbackId(self):
|
|
9628
|
+
"""回调配置ID。
|
|
9629
|
+
:rtype: str
|
|
9630
|
+
"""
|
|
9631
|
+
return self._WebCallbackId
|
|
9632
|
+
|
|
9633
|
+
@WebCallbackId.setter
|
|
9634
|
+
def WebCallbackId(self, WebCallbackId):
|
|
9635
|
+
self._WebCallbackId = WebCallbackId
|
|
9636
|
+
|
|
9637
|
+
@property
|
|
9638
|
+
def RequestId(self):
|
|
9639
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9640
|
+
:rtype: str
|
|
9641
|
+
"""
|
|
9642
|
+
return self._RequestId
|
|
9643
|
+
|
|
9644
|
+
@RequestId.setter
|
|
9645
|
+
def RequestId(self, RequestId):
|
|
9646
|
+
self._RequestId = RequestId
|
|
9647
|
+
|
|
9648
|
+
|
|
9649
|
+
def _deserialize(self, params):
|
|
9650
|
+
self._WebCallbackId = params.get("WebCallbackId")
|
|
9651
|
+
self._RequestId = params.get("RequestId")
|
|
9652
|
+
|
|
9653
|
+
|
|
9487
9654
|
class CsvInfo(AbstractModel):
|
|
9488
9655
|
"""csv内容描述
|
|
9489
9656
|
|
|
@@ -11962,6 +12129,70 @@ class DeleteTopicResponse(AbstractModel):
|
|
|
11962
12129
|
self._RequestId = params.get("RequestId")
|
|
11963
12130
|
|
|
11964
12131
|
|
|
12132
|
+
class DeleteWebCallbackRequest(AbstractModel):
|
|
12133
|
+
"""DeleteWebCallback请求参数结构体
|
|
12134
|
+
|
|
12135
|
+
"""
|
|
12136
|
+
|
|
12137
|
+
def __init__(self):
|
|
12138
|
+
r"""
|
|
12139
|
+
:param _WebCallbackId: 告警渠道回调配置ID。
|
|
12140
|
+
:type WebCallbackId: str
|
|
12141
|
+
"""
|
|
12142
|
+
self._WebCallbackId = None
|
|
12143
|
+
|
|
12144
|
+
@property
|
|
12145
|
+
def WebCallbackId(self):
|
|
12146
|
+
"""告警渠道回调配置ID。
|
|
12147
|
+
:rtype: str
|
|
12148
|
+
"""
|
|
12149
|
+
return self._WebCallbackId
|
|
12150
|
+
|
|
12151
|
+
@WebCallbackId.setter
|
|
12152
|
+
def WebCallbackId(self, WebCallbackId):
|
|
12153
|
+
self._WebCallbackId = WebCallbackId
|
|
12154
|
+
|
|
12155
|
+
|
|
12156
|
+
def _deserialize(self, params):
|
|
12157
|
+
self._WebCallbackId = params.get("WebCallbackId")
|
|
12158
|
+
memeber_set = set(params.keys())
|
|
12159
|
+
for name, value in vars(self).items():
|
|
12160
|
+
property_name = name[1:]
|
|
12161
|
+
if property_name in memeber_set:
|
|
12162
|
+
memeber_set.remove(property_name)
|
|
12163
|
+
if len(memeber_set) > 0:
|
|
12164
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12165
|
+
|
|
12166
|
+
|
|
12167
|
+
|
|
12168
|
+
class DeleteWebCallbackResponse(AbstractModel):
|
|
12169
|
+
"""DeleteWebCallback返回参数结构体
|
|
12170
|
+
|
|
12171
|
+
"""
|
|
12172
|
+
|
|
12173
|
+
def __init__(self):
|
|
12174
|
+
r"""
|
|
12175
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12176
|
+
:type RequestId: str
|
|
12177
|
+
"""
|
|
12178
|
+
self._RequestId = None
|
|
12179
|
+
|
|
12180
|
+
@property
|
|
12181
|
+
def RequestId(self):
|
|
12182
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12183
|
+
:rtype: str
|
|
12184
|
+
"""
|
|
12185
|
+
return self._RequestId
|
|
12186
|
+
|
|
12187
|
+
@RequestId.setter
|
|
12188
|
+
def RequestId(self, RequestId):
|
|
12189
|
+
self._RequestId = RequestId
|
|
12190
|
+
|
|
12191
|
+
|
|
12192
|
+
def _deserialize(self, params):
|
|
12193
|
+
self._RequestId = params.get("RequestId")
|
|
12194
|
+
|
|
12195
|
+
|
|
11965
12196
|
class DeliverConfig(AbstractModel):
|
|
11966
12197
|
"""投递配置入参
|
|
11967
12198
|
|
|
@@ -16587,8 +16818,8 @@ class DescribeTopicsRequest(AbstractModel):
|
|
|
16587
16818
|
<li>3: topicName 和logsetName 都精确匹配</li></ul>
|
|
16588
16819
|
:type PreciseSearch: int
|
|
16589
16820
|
:param _BizType: 主题类型
|
|
16590
|
-
|
|
16591
|
-
|
|
16821
|
+
- 0:日志主题,默认值
|
|
16822
|
+
- 1:指标主题
|
|
16592
16823
|
:type BizType: int
|
|
16593
16824
|
"""
|
|
16594
16825
|
self._Filters = None
|
|
@@ -16655,8 +16886,8 @@ class DescribeTopicsRequest(AbstractModel):
|
|
|
16655
16886
|
@property
|
|
16656
16887
|
def BizType(self):
|
|
16657
16888
|
"""主题类型
|
|
16658
|
-
|
|
16659
|
-
|
|
16889
|
+
- 0:日志主题,默认值
|
|
16890
|
+
- 1:指标主题
|
|
16660
16891
|
:rtype: int
|
|
16661
16892
|
"""
|
|
16662
16893
|
return self._BizType
|
|
@@ -16750,42 +16981,208 @@ class DescribeTopicsResponse(AbstractModel):
|
|
|
16750
16981
|
self._RequestId = params.get("RequestId")
|
|
16751
16982
|
|
|
16752
16983
|
|
|
16753
|
-
class
|
|
16754
|
-
"""
|
|
16984
|
+
class DescribeWebCallbacksRequest(AbstractModel):
|
|
16985
|
+
"""DescribeWebCallbacks请求参数结构体
|
|
16755
16986
|
|
|
16756
16987
|
"""
|
|
16757
16988
|
|
|
16758
16989
|
def __init__(self):
|
|
16759
16990
|
r"""
|
|
16760
|
-
:param
|
|
16761
|
-
|
|
16762
|
-
|
|
16991
|
+
:param _Filters: - name
|
|
16992
|
+
按照【告警渠道回调配置名称】进行过滤。
|
|
16993
|
+
类型:String
|
|
16994
|
+
必选:否
|
|
16995
|
+
|
|
16996
|
+
- webCallbackId
|
|
16997
|
+
按照【告警渠道回调配置ID】进行过滤。
|
|
16998
|
+
类型:String
|
|
16999
|
+
必选:否
|
|
17000
|
+
|
|
17001
|
+
- type
|
|
17002
|
+
按照【告警渠道回调配置渠道类型】进行过滤。
|
|
17003
|
+
类型:String
|
|
17004
|
+
必选:否
|
|
17005
|
+
|
|
17006
|
+
每次请求的Filters的上限为10,Filter.Values的上限为100。
|
|
17007
|
+
:type Filters: list of Filter
|
|
17008
|
+
:param _Offset: 分页的偏移量,默认值为0。
|
|
17009
|
+
:type Offset: int
|
|
17010
|
+
:param _Limit: 分页单页限制数目,默认值为20,最大值100。
|
|
17011
|
+
:type Limit: int
|
|
16763
17012
|
"""
|
|
16764
|
-
self.
|
|
17013
|
+
self._Filters = None
|
|
17014
|
+
self._Offset = None
|
|
17015
|
+
self._Limit = None
|
|
16765
17016
|
|
|
16766
17017
|
@property
|
|
16767
|
-
def
|
|
16768
|
-
"""
|
|
16769
|
-
|
|
16770
|
-
|
|
16771
|
-
|
|
16772
|
-
return self._Status
|
|
17018
|
+
def Filters(self):
|
|
17019
|
+
"""- name
|
|
17020
|
+
按照【告警渠道回调配置名称】进行过滤。
|
|
17021
|
+
类型:String
|
|
17022
|
+
必选:否
|
|
16773
17023
|
|
|
16774
|
-
|
|
16775
|
-
|
|
16776
|
-
|
|
17024
|
+
- webCallbackId
|
|
17025
|
+
按照【告警渠道回调配置ID】进行过滤。
|
|
17026
|
+
类型:String
|
|
17027
|
+
必选:否
|
|
16777
17028
|
|
|
17029
|
+
- type
|
|
17030
|
+
按照【告警渠道回调配置渠道类型】进行过滤。
|
|
17031
|
+
类型:String
|
|
17032
|
+
必选:否
|
|
16778
17033
|
|
|
16779
|
-
|
|
16780
|
-
|
|
16781
|
-
|
|
16782
|
-
|
|
16783
|
-
|
|
16784
|
-
|
|
16785
|
-
|
|
16786
|
-
|
|
16787
|
-
|
|
16788
|
-
|
|
17034
|
+
每次请求的Filters的上限为10,Filter.Values的上限为100。
|
|
17035
|
+
:rtype: list of Filter
|
|
17036
|
+
"""
|
|
17037
|
+
return self._Filters
|
|
17038
|
+
|
|
17039
|
+
@Filters.setter
|
|
17040
|
+
def Filters(self, Filters):
|
|
17041
|
+
self._Filters = Filters
|
|
17042
|
+
|
|
17043
|
+
@property
|
|
17044
|
+
def Offset(self):
|
|
17045
|
+
"""分页的偏移量,默认值为0。
|
|
17046
|
+
:rtype: int
|
|
17047
|
+
"""
|
|
17048
|
+
return self._Offset
|
|
17049
|
+
|
|
17050
|
+
@Offset.setter
|
|
17051
|
+
def Offset(self, Offset):
|
|
17052
|
+
self._Offset = Offset
|
|
17053
|
+
|
|
17054
|
+
@property
|
|
17055
|
+
def Limit(self):
|
|
17056
|
+
"""分页单页限制数目,默认值为20,最大值100。
|
|
17057
|
+
:rtype: int
|
|
17058
|
+
"""
|
|
17059
|
+
return self._Limit
|
|
17060
|
+
|
|
17061
|
+
@Limit.setter
|
|
17062
|
+
def Limit(self, Limit):
|
|
17063
|
+
self._Limit = Limit
|
|
17064
|
+
|
|
17065
|
+
|
|
17066
|
+
def _deserialize(self, params):
|
|
17067
|
+
if params.get("Filters") is not None:
|
|
17068
|
+
self._Filters = []
|
|
17069
|
+
for item in params.get("Filters"):
|
|
17070
|
+
obj = Filter()
|
|
17071
|
+
obj._deserialize(item)
|
|
17072
|
+
self._Filters.append(obj)
|
|
17073
|
+
self._Offset = params.get("Offset")
|
|
17074
|
+
self._Limit = params.get("Limit")
|
|
17075
|
+
memeber_set = set(params.keys())
|
|
17076
|
+
for name, value in vars(self).items():
|
|
17077
|
+
property_name = name[1:]
|
|
17078
|
+
if property_name in memeber_set:
|
|
17079
|
+
memeber_set.remove(property_name)
|
|
17080
|
+
if len(memeber_set) > 0:
|
|
17081
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
17082
|
+
|
|
17083
|
+
|
|
17084
|
+
|
|
17085
|
+
class DescribeWebCallbacksResponse(AbstractModel):
|
|
17086
|
+
"""DescribeWebCallbacks返回参数结构体
|
|
17087
|
+
|
|
17088
|
+
"""
|
|
17089
|
+
|
|
17090
|
+
def __init__(self):
|
|
17091
|
+
r"""
|
|
17092
|
+
:param _WebCallbacks: 告警渠道回调配置列表。
|
|
17093
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17094
|
+
:type WebCallbacks: list of WebCallbackInfo
|
|
17095
|
+
:param _TotalCount: 符合条件的通知内容配置总数。
|
|
17096
|
+
:type TotalCount: int
|
|
17097
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
17098
|
+
:type RequestId: str
|
|
17099
|
+
"""
|
|
17100
|
+
self._WebCallbacks = None
|
|
17101
|
+
self._TotalCount = None
|
|
17102
|
+
self._RequestId = None
|
|
17103
|
+
|
|
17104
|
+
@property
|
|
17105
|
+
def WebCallbacks(self):
|
|
17106
|
+
"""告警渠道回调配置列表。
|
|
17107
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17108
|
+
:rtype: list of WebCallbackInfo
|
|
17109
|
+
"""
|
|
17110
|
+
return self._WebCallbacks
|
|
17111
|
+
|
|
17112
|
+
@WebCallbacks.setter
|
|
17113
|
+
def WebCallbacks(self, WebCallbacks):
|
|
17114
|
+
self._WebCallbacks = WebCallbacks
|
|
17115
|
+
|
|
17116
|
+
@property
|
|
17117
|
+
def TotalCount(self):
|
|
17118
|
+
"""符合条件的通知内容配置总数。
|
|
17119
|
+
:rtype: int
|
|
17120
|
+
"""
|
|
17121
|
+
return self._TotalCount
|
|
17122
|
+
|
|
17123
|
+
@TotalCount.setter
|
|
17124
|
+
def TotalCount(self, TotalCount):
|
|
17125
|
+
self._TotalCount = TotalCount
|
|
17126
|
+
|
|
17127
|
+
@property
|
|
17128
|
+
def RequestId(self):
|
|
17129
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
17130
|
+
:rtype: str
|
|
17131
|
+
"""
|
|
17132
|
+
return self._RequestId
|
|
17133
|
+
|
|
17134
|
+
@RequestId.setter
|
|
17135
|
+
def RequestId(self, RequestId):
|
|
17136
|
+
self._RequestId = RequestId
|
|
17137
|
+
|
|
17138
|
+
|
|
17139
|
+
def _deserialize(self, params):
|
|
17140
|
+
if params.get("WebCallbacks") is not None:
|
|
17141
|
+
self._WebCallbacks = []
|
|
17142
|
+
for item in params.get("WebCallbacks"):
|
|
17143
|
+
obj = WebCallbackInfo()
|
|
17144
|
+
obj._deserialize(item)
|
|
17145
|
+
self._WebCallbacks.append(obj)
|
|
17146
|
+
self._TotalCount = params.get("TotalCount")
|
|
17147
|
+
self._RequestId = params.get("RequestId")
|
|
17148
|
+
|
|
17149
|
+
|
|
17150
|
+
class DynamicIndex(AbstractModel):
|
|
17151
|
+
"""键值索引自动配置,启用后自动将日志内的字段添加到键值索引中,包括日志中后续新增的字段。
|
|
17152
|
+
|
|
17153
|
+
"""
|
|
17154
|
+
|
|
17155
|
+
def __init__(self):
|
|
17156
|
+
r"""
|
|
17157
|
+
:param _Status: 键值索引自动配置开关
|
|
17158
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17159
|
+
:type Status: bool
|
|
17160
|
+
"""
|
|
17161
|
+
self._Status = None
|
|
17162
|
+
|
|
17163
|
+
@property
|
|
17164
|
+
def Status(self):
|
|
17165
|
+
"""键值索引自动配置开关
|
|
17166
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17167
|
+
:rtype: bool
|
|
17168
|
+
"""
|
|
17169
|
+
return self._Status
|
|
17170
|
+
|
|
17171
|
+
@Status.setter
|
|
17172
|
+
def Status(self, Status):
|
|
17173
|
+
self._Status = Status
|
|
17174
|
+
|
|
17175
|
+
|
|
17176
|
+
def _deserialize(self, params):
|
|
17177
|
+
self._Status = params.get("Status")
|
|
17178
|
+
memeber_set = set(params.keys())
|
|
17179
|
+
for name, value in vars(self).items():
|
|
17180
|
+
property_name = name[1:]
|
|
17181
|
+
if property_name in memeber_set:
|
|
17182
|
+
memeber_set.remove(property_name)
|
|
17183
|
+
if len(memeber_set) > 0:
|
|
17184
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
17185
|
+
|
|
16789
17186
|
|
|
16790
17187
|
|
|
16791
17188
|
class EscalateNoticeInfo(AbstractModel):
|
|
@@ -16940,6 +17337,10 @@ class EventLog(AbstractModel):
|
|
|
16940
17337
|
:param _Timestamp: 时间,用户选择自定义时间类型时,需要指定时间
|
|
16941
17338
|
:type Timestamp: int
|
|
16942
17339
|
:param _EventIDs: 事件ID过滤列表
|
|
17340
|
+
|
|
17341
|
+
选填,为空表示不做过滤
|
|
17342
|
+
支持正向过滤单个值(例:20)或范围(例:0-20),也支持反向过滤单个值(例:-20)
|
|
17343
|
+
多个过滤项之间可由逗号隔开,例:1-200,-100表示采集1-200范围内除了100以外的事件日志
|
|
16943
17344
|
:type EventIDs: list of str
|
|
16944
17345
|
"""
|
|
16945
17346
|
self._EventChannel = None
|
|
@@ -16984,6 +17385,10 @@ class EventLog(AbstractModel):
|
|
|
16984
17385
|
@property
|
|
16985
17386
|
def EventIDs(self):
|
|
16986
17387
|
"""事件ID过滤列表
|
|
17388
|
+
|
|
17389
|
+
选填,为空表示不做过滤
|
|
17390
|
+
支持正向过滤单个值(例:20)或范围(例:0-20),也支持反向过滤单个值(例:-20)
|
|
17391
|
+
多个过滤项之间可由逗号隔开,例:1-200,-100表示采集1-200范围内除了100以外的事件日志
|
|
16987
17392
|
:rtype: list of str
|
|
16988
17393
|
"""
|
|
16989
17394
|
return self._EventIDs
|
|
@@ -17386,6 +17791,12 @@ auto:自动匹配rfc3164或者rfc5424其中一种协议。
|
|
|
17386
17791
|
- COS导入不支持此字段。
|
|
17387
17792
|
:type MetadataType: int
|
|
17388
17793
|
:param _PathRegex: 采集配置路径正则表达式。
|
|
17794
|
+
|
|
17795
|
+
```
|
|
17796
|
+
请用"()"标识路径中目标字段对应的正则表达式,解析时将"()"视为捕获组,并以__TAG__.{i}:{目标字段}的形式与日志一起上报,其中i为捕获组的序号。
|
|
17797
|
+
若不希望以序号为键名,可以通过命名捕获组"(?<{键名}>{正则})"自定义键名,并以__TAG__.{键名}:{目标字段}的形式与日志一起上报。最多支持5个捕获组
|
|
17798
|
+
```
|
|
17799
|
+
|
|
17389
17800
|
注意:
|
|
17390
17801
|
- MetadataType为3时必填。
|
|
17391
17802
|
- COS导入不支持此字段。
|
|
@@ -17642,6 +18053,12 @@ auto:自动匹配rfc3164或者rfc5424其中一种协议。
|
|
|
17642
18053
|
@property
|
|
17643
18054
|
def PathRegex(self):
|
|
17644
18055
|
"""采集配置路径正则表达式。
|
|
18056
|
+
|
|
18057
|
+
```
|
|
18058
|
+
请用"()"标识路径中目标字段对应的正则表达式,解析时将"()"视为捕获组,并以__TAG__.{i}:{目标字段}的形式与日志一起上报,其中i为捕获组的序号。
|
|
18059
|
+
若不希望以序号为键名,可以通过命名捕获组"(?<{键名}>{正则})"自定义键名,并以__TAG__.{键名}:{目标字段}的形式与日志一起上报。最多支持5个捕获组
|
|
18060
|
+
```
|
|
18061
|
+
|
|
17645
18062
|
注意:
|
|
17646
18063
|
- MetadataType为3时必填。
|
|
17647
18064
|
- COS导入不支持此字段。
|
|
@@ -21780,7 +22197,7 @@ class ModifyConfigExtraRequest(AbstractModel):
|
|
|
21780
22197
|
- multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
|
|
21781
22198
|
- user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310))。
|
|
21782
22199
|
:type LogType: str
|
|
21783
|
-
:param _LogFormat:
|
|
22200
|
+
:param _LogFormat: 日志格式化方式,用于容器采集场景。目前已经废弃
|
|
21784
22201
|
- stdout-docker-json:用于docker容器采集场景
|
|
21785
22202
|
- stdout-containerd:用于containerd容器采集场景
|
|
21786
22203
|
:type LogFormat: str
|
|
@@ -21918,7 +22335,7 @@ class ModifyConfigExtraRequest(AbstractModel):
|
|
|
21918
22335
|
|
|
21919
22336
|
@property
|
|
21920
22337
|
def LogFormat(self):
|
|
21921
|
-
"""
|
|
22338
|
+
"""日志格式化方式,用于容器采集场景。目前已经废弃
|
|
21922
22339
|
- stdout-docker-json:用于docker容器采集场景
|
|
21923
22340
|
- stdout-containerd:用于containerd容器采集场景
|
|
21924
22341
|
:rtype: str
|
|
@@ -24716,6 +25133,157 @@ class ModifyTopicResponse(AbstractModel):
|
|
|
24716
25133
|
self._RequestId = params.get("RequestId")
|
|
24717
25134
|
|
|
24718
25135
|
|
|
25136
|
+
class ModifyWebCallbackRequest(AbstractModel):
|
|
25137
|
+
"""ModifyWebCallback请求参数结构体
|
|
25138
|
+
|
|
25139
|
+
"""
|
|
25140
|
+
|
|
25141
|
+
def __init__(self):
|
|
25142
|
+
r"""
|
|
25143
|
+
:param _WebCallbackId: 告警渠道回调配置ID。
|
|
25144
|
+
:type WebCallbackId: str
|
|
25145
|
+
:param _Name: 告警渠道回调配置名称。
|
|
25146
|
+
:type Name: str
|
|
25147
|
+
:param _Type: 渠道类型
|
|
25148
|
+
|
|
25149
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
|
|
25150
|
+
:type Type: str
|
|
25151
|
+
:param _Webhook: 回调地址。
|
|
25152
|
+
:type Webhook: str
|
|
25153
|
+
:param _Method: 请求方式。
|
|
25154
|
+
|
|
25155
|
+
支持POST、PUT。
|
|
25156
|
+
|
|
25157
|
+
注意:当Type为Http时,必填。
|
|
25158
|
+
:type Method: str
|
|
25159
|
+
:param _Key: 秘钥信息。
|
|
25160
|
+
:type Key: str
|
|
25161
|
+
"""
|
|
25162
|
+
self._WebCallbackId = None
|
|
25163
|
+
self._Name = None
|
|
25164
|
+
self._Type = None
|
|
25165
|
+
self._Webhook = None
|
|
25166
|
+
self._Method = None
|
|
25167
|
+
self._Key = None
|
|
25168
|
+
|
|
25169
|
+
@property
|
|
25170
|
+
def WebCallbackId(self):
|
|
25171
|
+
"""告警渠道回调配置ID。
|
|
25172
|
+
:rtype: str
|
|
25173
|
+
"""
|
|
25174
|
+
return self._WebCallbackId
|
|
25175
|
+
|
|
25176
|
+
@WebCallbackId.setter
|
|
25177
|
+
def WebCallbackId(self, WebCallbackId):
|
|
25178
|
+
self._WebCallbackId = WebCallbackId
|
|
25179
|
+
|
|
25180
|
+
@property
|
|
25181
|
+
def Name(self):
|
|
25182
|
+
"""告警渠道回调配置名称。
|
|
25183
|
+
:rtype: str
|
|
25184
|
+
"""
|
|
25185
|
+
return self._Name
|
|
25186
|
+
|
|
25187
|
+
@Name.setter
|
|
25188
|
+
def Name(self, Name):
|
|
25189
|
+
self._Name = Name
|
|
25190
|
+
|
|
25191
|
+
@property
|
|
25192
|
+
def Type(self):
|
|
25193
|
+
"""渠道类型
|
|
25194
|
+
|
|
25195
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
|
|
25196
|
+
:rtype: str
|
|
25197
|
+
"""
|
|
25198
|
+
return self._Type
|
|
25199
|
+
|
|
25200
|
+
@Type.setter
|
|
25201
|
+
def Type(self, Type):
|
|
25202
|
+
self._Type = Type
|
|
25203
|
+
|
|
25204
|
+
@property
|
|
25205
|
+
def Webhook(self):
|
|
25206
|
+
"""回调地址。
|
|
25207
|
+
:rtype: str
|
|
25208
|
+
"""
|
|
25209
|
+
return self._Webhook
|
|
25210
|
+
|
|
25211
|
+
@Webhook.setter
|
|
25212
|
+
def Webhook(self, Webhook):
|
|
25213
|
+
self._Webhook = Webhook
|
|
25214
|
+
|
|
25215
|
+
@property
|
|
25216
|
+
def Method(self):
|
|
25217
|
+
"""请求方式。
|
|
25218
|
+
|
|
25219
|
+
支持POST、PUT。
|
|
25220
|
+
|
|
25221
|
+
注意:当Type为Http时,必填。
|
|
25222
|
+
:rtype: str
|
|
25223
|
+
"""
|
|
25224
|
+
return self._Method
|
|
25225
|
+
|
|
25226
|
+
@Method.setter
|
|
25227
|
+
def Method(self, Method):
|
|
25228
|
+
self._Method = Method
|
|
25229
|
+
|
|
25230
|
+
@property
|
|
25231
|
+
def Key(self):
|
|
25232
|
+
"""秘钥信息。
|
|
25233
|
+
:rtype: str
|
|
25234
|
+
"""
|
|
25235
|
+
return self._Key
|
|
25236
|
+
|
|
25237
|
+
@Key.setter
|
|
25238
|
+
def Key(self, Key):
|
|
25239
|
+
self._Key = Key
|
|
25240
|
+
|
|
25241
|
+
|
|
25242
|
+
def _deserialize(self, params):
|
|
25243
|
+
self._WebCallbackId = params.get("WebCallbackId")
|
|
25244
|
+
self._Name = params.get("Name")
|
|
25245
|
+
self._Type = params.get("Type")
|
|
25246
|
+
self._Webhook = params.get("Webhook")
|
|
25247
|
+
self._Method = params.get("Method")
|
|
25248
|
+
self._Key = params.get("Key")
|
|
25249
|
+
memeber_set = set(params.keys())
|
|
25250
|
+
for name, value in vars(self).items():
|
|
25251
|
+
property_name = name[1:]
|
|
25252
|
+
if property_name in memeber_set:
|
|
25253
|
+
memeber_set.remove(property_name)
|
|
25254
|
+
if len(memeber_set) > 0:
|
|
25255
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
25256
|
+
|
|
25257
|
+
|
|
25258
|
+
|
|
25259
|
+
class ModifyWebCallbackResponse(AbstractModel):
|
|
25260
|
+
"""ModifyWebCallback返回参数结构体
|
|
25261
|
+
|
|
25262
|
+
"""
|
|
25263
|
+
|
|
25264
|
+
def __init__(self):
|
|
25265
|
+
r"""
|
|
25266
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25267
|
+
:type RequestId: str
|
|
25268
|
+
"""
|
|
25269
|
+
self._RequestId = None
|
|
25270
|
+
|
|
25271
|
+
@property
|
|
25272
|
+
def RequestId(self):
|
|
25273
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25274
|
+
:rtype: str
|
|
25275
|
+
"""
|
|
25276
|
+
return self._RequestId
|
|
25277
|
+
|
|
25278
|
+
@RequestId.setter
|
|
25279
|
+
def RequestId(self, RequestId):
|
|
25280
|
+
self._RequestId = RequestId
|
|
25281
|
+
|
|
25282
|
+
|
|
25283
|
+
def _deserialize(self, params):
|
|
25284
|
+
self._RequestId = params.get("RequestId")
|
|
25285
|
+
|
|
25286
|
+
|
|
24719
25287
|
class MonitorTime(AbstractModel):
|
|
24720
25288
|
"""告警策略中监控任务的执行时间点
|
|
24721
25289
|
|
|
@@ -24807,7 +25375,8 @@ class MultiCondition(AbstractModel):
|
|
|
24807
25375
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24808
25376
|
:type Condition: str
|
|
24809
25377
|
:param _AlarmLevel: 告警级别。0:警告(Warn); 1:提醒(Info); 2:紧急 (Critical)。
|
|
24810
|
-
|
|
25378
|
+
|
|
25379
|
+
- 不填则默认为0。
|
|
24811
25380
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24812
25381
|
:type AlarmLevel: int
|
|
24813
25382
|
"""
|
|
@@ -24829,7 +25398,8 @@ class MultiCondition(AbstractModel):
|
|
|
24829
25398
|
@property
|
|
24830
25399
|
def AlarmLevel(self):
|
|
24831
25400
|
"""告警级别。0:警告(Warn); 1:提醒(Info); 2:紧急 (Critical)。
|
|
24832
|
-
|
|
25401
|
+
|
|
25402
|
+
- 不填则默认为0。
|
|
24833
25403
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24834
25404
|
:rtype: int
|
|
24835
25405
|
"""
|
|
@@ -27920,7 +28490,7 @@ class SearchLogRequest(AbstractModel):
|
|
|
27920
28490
|
- 如需同时检索多个日志主题,请使用Topics参数。
|
|
27921
28491
|
- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。
|
|
27922
28492
|
:type TopicId: str
|
|
27923
|
-
:param _Topics: - 要检索分析的日志主题列表,最大支持
|
|
28493
|
+
:param _Topics: - 要检索分析的日志主题列表,最大支持50个日志主题。
|
|
27924
28494
|
- 检索单个日志主题时请使用TopicId。
|
|
27925
28495
|
- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。
|
|
27926
28496
|
:type Topics: list of MultiTopicSearchInformation
|
|
@@ -28040,7 +28610,7 @@ class SearchLogRequest(AbstractModel):
|
|
|
28040
28610
|
|
|
28041
28611
|
@property
|
|
28042
28612
|
def Topics(self):
|
|
28043
|
-
"""- 要检索分析的日志主题列表,最大支持
|
|
28613
|
+
"""- 要检索分析的日志主题列表,最大支持50个日志主题。
|
|
28044
28614
|
- 检索单个日志主题时请使用TopicId。
|
|
28045
28615
|
- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。
|
|
28046
28616
|
:rtype: list of MultiTopicSearchInformation
|
|
@@ -30115,4 +30685,199 @@ class WebCallback(AbstractModel):
|
|
|
30115
30685
|
memeber_set.remove(property_name)
|
|
30116
30686
|
if len(memeber_set) > 0:
|
|
30117
30687
|
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30688
|
+
|
|
30689
|
+
|
|
30690
|
+
|
|
30691
|
+
class WebCallbackInfo(AbstractModel):
|
|
30692
|
+
"""告警渠道回调配置信息
|
|
30693
|
+
|
|
30694
|
+
"""
|
|
30695
|
+
|
|
30696
|
+
def __init__(self):
|
|
30697
|
+
r"""
|
|
30698
|
+
:param _WebCallbackId: 告警渠道回调配置id。
|
|
30699
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30700
|
+
:type WebCallbackId: str
|
|
30701
|
+
:param _Name: 告警渠道回调配置名称。
|
|
30702
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30703
|
+
:type Name: str
|
|
30704
|
+
:param _Type: 渠道类型
|
|
30705
|
+
|
|
30706
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
|
|
30707
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30708
|
+
:type Type: str
|
|
30709
|
+
:param _Webhook: 回调地址。
|
|
30710
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30711
|
+
:type Webhook: str
|
|
30712
|
+
:param _Method: 请求方式。
|
|
30713
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30714
|
+
:type Method: str
|
|
30715
|
+
:param _Key: 秘钥信息。
|
|
30716
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30717
|
+
:type Key: str
|
|
30718
|
+
:param _Uin: 主账号。
|
|
30719
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30720
|
+
:type Uin: int
|
|
30721
|
+
:param _SubUin: 子账号。
|
|
30722
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30723
|
+
:type SubUin: int
|
|
30724
|
+
:param _CreateTime: 创建时间。秒级时间戳
|
|
30725
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30726
|
+
:type CreateTime: int
|
|
30727
|
+
:param _UpdateTime: 更新时间。秒级时间戳
|
|
30728
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30729
|
+
:type UpdateTime: int
|
|
30730
|
+
"""
|
|
30731
|
+
self._WebCallbackId = None
|
|
30732
|
+
self._Name = None
|
|
30733
|
+
self._Type = None
|
|
30734
|
+
self._Webhook = None
|
|
30735
|
+
self._Method = None
|
|
30736
|
+
self._Key = None
|
|
30737
|
+
self._Uin = None
|
|
30738
|
+
self._SubUin = None
|
|
30739
|
+
self._CreateTime = None
|
|
30740
|
+
self._UpdateTime = None
|
|
30741
|
+
|
|
30742
|
+
@property
|
|
30743
|
+
def WebCallbackId(self):
|
|
30744
|
+
"""告警渠道回调配置id。
|
|
30745
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30746
|
+
:rtype: str
|
|
30747
|
+
"""
|
|
30748
|
+
return self._WebCallbackId
|
|
30749
|
+
|
|
30750
|
+
@WebCallbackId.setter
|
|
30751
|
+
def WebCallbackId(self, WebCallbackId):
|
|
30752
|
+
self._WebCallbackId = WebCallbackId
|
|
30753
|
+
|
|
30754
|
+
@property
|
|
30755
|
+
def Name(self):
|
|
30756
|
+
"""告警渠道回调配置名称。
|
|
30757
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30758
|
+
:rtype: str
|
|
30759
|
+
"""
|
|
30760
|
+
return self._Name
|
|
30761
|
+
|
|
30762
|
+
@Name.setter
|
|
30763
|
+
def Name(self, Name):
|
|
30764
|
+
self._Name = Name
|
|
30765
|
+
|
|
30766
|
+
@property
|
|
30767
|
+
def Type(self):
|
|
30768
|
+
"""渠道类型
|
|
30769
|
+
|
|
30770
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
|
|
30771
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30772
|
+
:rtype: str
|
|
30773
|
+
"""
|
|
30774
|
+
return self._Type
|
|
30775
|
+
|
|
30776
|
+
@Type.setter
|
|
30777
|
+
def Type(self, Type):
|
|
30778
|
+
self._Type = Type
|
|
30779
|
+
|
|
30780
|
+
@property
|
|
30781
|
+
def Webhook(self):
|
|
30782
|
+
"""回调地址。
|
|
30783
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30784
|
+
:rtype: str
|
|
30785
|
+
"""
|
|
30786
|
+
return self._Webhook
|
|
30787
|
+
|
|
30788
|
+
@Webhook.setter
|
|
30789
|
+
def Webhook(self, Webhook):
|
|
30790
|
+
self._Webhook = Webhook
|
|
30791
|
+
|
|
30792
|
+
@property
|
|
30793
|
+
def Method(self):
|
|
30794
|
+
"""请求方式。
|
|
30795
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30796
|
+
:rtype: str
|
|
30797
|
+
"""
|
|
30798
|
+
return self._Method
|
|
30799
|
+
|
|
30800
|
+
@Method.setter
|
|
30801
|
+
def Method(self, Method):
|
|
30802
|
+
self._Method = Method
|
|
30803
|
+
|
|
30804
|
+
@property
|
|
30805
|
+
def Key(self):
|
|
30806
|
+
"""秘钥信息。
|
|
30807
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30808
|
+
:rtype: str
|
|
30809
|
+
"""
|
|
30810
|
+
return self._Key
|
|
30811
|
+
|
|
30812
|
+
@Key.setter
|
|
30813
|
+
def Key(self, Key):
|
|
30814
|
+
self._Key = Key
|
|
30815
|
+
|
|
30816
|
+
@property
|
|
30817
|
+
def Uin(self):
|
|
30818
|
+
"""主账号。
|
|
30819
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30820
|
+
:rtype: int
|
|
30821
|
+
"""
|
|
30822
|
+
return self._Uin
|
|
30823
|
+
|
|
30824
|
+
@Uin.setter
|
|
30825
|
+
def Uin(self, Uin):
|
|
30826
|
+
self._Uin = Uin
|
|
30827
|
+
|
|
30828
|
+
@property
|
|
30829
|
+
def SubUin(self):
|
|
30830
|
+
"""子账号。
|
|
30831
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30832
|
+
:rtype: int
|
|
30833
|
+
"""
|
|
30834
|
+
return self._SubUin
|
|
30835
|
+
|
|
30836
|
+
@SubUin.setter
|
|
30837
|
+
def SubUin(self, SubUin):
|
|
30838
|
+
self._SubUin = SubUin
|
|
30839
|
+
|
|
30840
|
+
@property
|
|
30841
|
+
def CreateTime(self):
|
|
30842
|
+
"""创建时间。秒级时间戳
|
|
30843
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30844
|
+
:rtype: int
|
|
30845
|
+
"""
|
|
30846
|
+
return self._CreateTime
|
|
30847
|
+
|
|
30848
|
+
@CreateTime.setter
|
|
30849
|
+
def CreateTime(self, CreateTime):
|
|
30850
|
+
self._CreateTime = CreateTime
|
|
30851
|
+
|
|
30852
|
+
@property
|
|
30853
|
+
def UpdateTime(self):
|
|
30854
|
+
"""更新时间。秒级时间戳
|
|
30855
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30856
|
+
:rtype: int
|
|
30857
|
+
"""
|
|
30858
|
+
return self._UpdateTime
|
|
30859
|
+
|
|
30860
|
+
@UpdateTime.setter
|
|
30861
|
+
def UpdateTime(self, UpdateTime):
|
|
30862
|
+
self._UpdateTime = UpdateTime
|
|
30863
|
+
|
|
30864
|
+
|
|
30865
|
+
def _deserialize(self, params):
|
|
30866
|
+
self._WebCallbackId = params.get("WebCallbackId")
|
|
30867
|
+
self._Name = params.get("Name")
|
|
30868
|
+
self._Type = params.get("Type")
|
|
30869
|
+
self._Webhook = params.get("Webhook")
|
|
30870
|
+
self._Method = params.get("Method")
|
|
30871
|
+
self._Key = params.get("Key")
|
|
30872
|
+
self._Uin = params.get("Uin")
|
|
30873
|
+
self._SubUin = params.get("SubUin")
|
|
30874
|
+
self._CreateTime = params.get("CreateTime")
|
|
30875
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
30876
|
+
memeber_set = set(params.keys())
|
|
30877
|
+
for name, value in vars(self).items():
|
|
30878
|
+
property_name = name[1:]
|
|
30879
|
+
if property_name in memeber_set:
|
|
30880
|
+
memeber_set.remove(property_name)
|
|
30881
|
+
if len(memeber_set) > 0:
|
|
30882
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30118
30883
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1303
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1288
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|