tencentcloud-sdk-python-cls 3.0.1286__tar.gz → 3.0.1297__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.1286 → tencentcloud-sdk-python-cls-3.0.1297}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/setup.py +1 -1
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/tencentcloud/cls/v20201016/cls_client.py +92 -0
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/tencentcloud/cls/v20201016/models.py +793 -50
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/tencentcloud_sdk_python_cls.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cls-3.0.1297/tencentcloud_sdk_python_cls.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cls-3.0.1286/tencentcloud_sdk_python_cls.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/README.rst +0 -0
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/tencentcloud/cls/__init__.py +0 -0
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/tencentcloud/cls/v20201016/__init__.py +0 -0
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/tencentcloud/cls/v20201016/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/tencentcloud_sdk_python_cls.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/tencentcloud_sdk_python_cls.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cls-3.0.1286 → tencentcloud-sdk-python-cls-3.0.1297}/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.1297"],
|
|
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
|
|
|
@@ -1873,7 +1873,6 @@ class AnalysisDimensional(AbstractModel):
|
|
|
1873
1873
|
"Key": "SyntaxRule", // 查不到这个字段也是老语法
|
|
1874
1874
|
"Value": "0"//0:Lucene, 1:CQL
|
|
1875
1875
|
}
|
|
1876
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1877
1876
|
:type ConfigInfo: list of AlarmAnalysisConfig
|
|
1878
1877
|
"""
|
|
1879
1878
|
self._Name = None
|
|
@@ -1960,7 +1959,6 @@ class AnalysisDimensional(AbstractModel):
|
|
|
1960
1959
|
"Key": "SyntaxRule", // 查不到这个字段也是老语法
|
|
1961
1960
|
"Value": "0"//0:Lucene, 1:CQL
|
|
1962
1961
|
}
|
|
1963
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1964
1962
|
:rtype: list of AlarmAnalysisConfig
|
|
1965
1963
|
"""
|
|
1966
1964
|
return self._ConfigInfo
|
|
@@ -6116,7 +6114,7 @@ class CreateConfigExtraRequest(AbstractModel):
|
|
|
6116
6114
|
:type ContainerFile: :class:`tencentcloud.cls.v20201016.models.ContainerFileInfo`
|
|
6117
6115
|
:param _ContainerStdout: 容器标准输出类型配置。
|
|
6118
6116
|
:type ContainerStdout: :class:`tencentcloud.cls.v20201016.models.ContainerStdoutInfo`
|
|
6119
|
-
:param _LogFormat: 日志格式化方式,用于容器采集场景。
|
|
6117
|
+
:param _LogFormat: 日志格式化方式,用于容器采集场景。 - 已废弃
|
|
6120
6118
|
- stdout-docker-json:用于docker容器采集场景
|
|
6121
6119
|
- stdout-containerd:用于containerd容器采集场景
|
|
6122
6120
|
:type LogFormat: str
|
|
@@ -6294,7 +6292,7 @@ class CreateConfigExtraRequest(AbstractModel):
|
|
|
6294
6292
|
|
|
6295
6293
|
@property
|
|
6296
6294
|
def LogFormat(self):
|
|
6297
|
-
"""日志格式化方式,用于容器采集场景。
|
|
6295
|
+
"""日志格式化方式,用于容器采集场景。 - 已废弃
|
|
6298
6296
|
- stdout-docker-json:用于docker容器采集场景
|
|
6299
6297
|
- stdout-containerd:用于containerd容器采集场景
|
|
6300
6298
|
:rtype: str
|
|
@@ -9484,6 +9482,153 @@ class CreateTopicResponse(AbstractModel):
|
|
|
9484
9482
|
self._RequestId = params.get("RequestId")
|
|
9485
9483
|
|
|
9486
9484
|
|
|
9485
|
+
class CreateWebCallbackRequest(AbstractModel):
|
|
9486
|
+
"""CreateWebCallback请求参数结构体
|
|
9487
|
+
|
|
9488
|
+
"""
|
|
9489
|
+
|
|
9490
|
+
def __init__(self):
|
|
9491
|
+
r"""
|
|
9492
|
+
:param _Name: 通知内容名称。
|
|
9493
|
+
:type Name: str
|
|
9494
|
+
:param _Type: 渠道类型。
|
|
9495
|
+
|
|
9496
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调。
|
|
9497
|
+
:type Type: str
|
|
9498
|
+
:param _Webhook: Webhook地址。
|
|
9499
|
+
:type Webhook: str
|
|
9500
|
+
:param _Method: 请求方式。 支持POST、PUT。
|
|
9501
|
+
|
|
9502
|
+
当Type为Http时,必填。
|
|
9503
|
+
:type Method: str
|
|
9504
|
+
:param _Key: 秘钥。
|
|
9505
|
+
:type Key: str
|
|
9506
|
+
"""
|
|
9507
|
+
self._Name = None
|
|
9508
|
+
self._Type = None
|
|
9509
|
+
self._Webhook = None
|
|
9510
|
+
self._Method = None
|
|
9511
|
+
self._Key = None
|
|
9512
|
+
|
|
9513
|
+
@property
|
|
9514
|
+
def Name(self):
|
|
9515
|
+
"""通知内容名称。
|
|
9516
|
+
:rtype: str
|
|
9517
|
+
"""
|
|
9518
|
+
return self._Name
|
|
9519
|
+
|
|
9520
|
+
@Name.setter
|
|
9521
|
+
def Name(self, Name):
|
|
9522
|
+
self._Name = Name
|
|
9523
|
+
|
|
9524
|
+
@property
|
|
9525
|
+
def Type(self):
|
|
9526
|
+
"""渠道类型。
|
|
9527
|
+
|
|
9528
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调。
|
|
9529
|
+
:rtype: str
|
|
9530
|
+
"""
|
|
9531
|
+
return self._Type
|
|
9532
|
+
|
|
9533
|
+
@Type.setter
|
|
9534
|
+
def Type(self, Type):
|
|
9535
|
+
self._Type = Type
|
|
9536
|
+
|
|
9537
|
+
@property
|
|
9538
|
+
def Webhook(self):
|
|
9539
|
+
"""Webhook地址。
|
|
9540
|
+
:rtype: str
|
|
9541
|
+
"""
|
|
9542
|
+
return self._Webhook
|
|
9543
|
+
|
|
9544
|
+
@Webhook.setter
|
|
9545
|
+
def Webhook(self, Webhook):
|
|
9546
|
+
self._Webhook = Webhook
|
|
9547
|
+
|
|
9548
|
+
@property
|
|
9549
|
+
def Method(self):
|
|
9550
|
+
"""请求方式。 支持POST、PUT。
|
|
9551
|
+
|
|
9552
|
+
当Type为Http时,必填。
|
|
9553
|
+
:rtype: str
|
|
9554
|
+
"""
|
|
9555
|
+
return self._Method
|
|
9556
|
+
|
|
9557
|
+
@Method.setter
|
|
9558
|
+
def Method(self, Method):
|
|
9559
|
+
self._Method = Method
|
|
9560
|
+
|
|
9561
|
+
@property
|
|
9562
|
+
def Key(self):
|
|
9563
|
+
"""秘钥。
|
|
9564
|
+
:rtype: str
|
|
9565
|
+
"""
|
|
9566
|
+
return self._Key
|
|
9567
|
+
|
|
9568
|
+
@Key.setter
|
|
9569
|
+
def Key(self, Key):
|
|
9570
|
+
self._Key = Key
|
|
9571
|
+
|
|
9572
|
+
|
|
9573
|
+
def _deserialize(self, params):
|
|
9574
|
+
self._Name = params.get("Name")
|
|
9575
|
+
self._Type = params.get("Type")
|
|
9576
|
+
self._Webhook = params.get("Webhook")
|
|
9577
|
+
self._Method = params.get("Method")
|
|
9578
|
+
self._Key = params.get("Key")
|
|
9579
|
+
memeber_set = set(params.keys())
|
|
9580
|
+
for name, value in vars(self).items():
|
|
9581
|
+
property_name = name[1:]
|
|
9582
|
+
if property_name in memeber_set:
|
|
9583
|
+
memeber_set.remove(property_name)
|
|
9584
|
+
if len(memeber_set) > 0:
|
|
9585
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9586
|
+
|
|
9587
|
+
|
|
9588
|
+
|
|
9589
|
+
class CreateWebCallbackResponse(AbstractModel):
|
|
9590
|
+
"""CreateWebCallback返回参数结构体
|
|
9591
|
+
|
|
9592
|
+
"""
|
|
9593
|
+
|
|
9594
|
+
def __init__(self):
|
|
9595
|
+
r"""
|
|
9596
|
+
:param _WebCallbackId: 回调配置ID。
|
|
9597
|
+
:type WebCallbackId: str
|
|
9598
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9599
|
+
:type RequestId: str
|
|
9600
|
+
"""
|
|
9601
|
+
self._WebCallbackId = None
|
|
9602
|
+
self._RequestId = None
|
|
9603
|
+
|
|
9604
|
+
@property
|
|
9605
|
+
def WebCallbackId(self):
|
|
9606
|
+
"""回调配置ID。
|
|
9607
|
+
:rtype: str
|
|
9608
|
+
"""
|
|
9609
|
+
return self._WebCallbackId
|
|
9610
|
+
|
|
9611
|
+
@WebCallbackId.setter
|
|
9612
|
+
def WebCallbackId(self, WebCallbackId):
|
|
9613
|
+
self._WebCallbackId = WebCallbackId
|
|
9614
|
+
|
|
9615
|
+
@property
|
|
9616
|
+
def RequestId(self):
|
|
9617
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9618
|
+
:rtype: str
|
|
9619
|
+
"""
|
|
9620
|
+
return self._RequestId
|
|
9621
|
+
|
|
9622
|
+
@RequestId.setter
|
|
9623
|
+
def RequestId(self, RequestId):
|
|
9624
|
+
self._RequestId = RequestId
|
|
9625
|
+
|
|
9626
|
+
|
|
9627
|
+
def _deserialize(self, params):
|
|
9628
|
+
self._WebCallbackId = params.get("WebCallbackId")
|
|
9629
|
+
self._RequestId = params.get("RequestId")
|
|
9630
|
+
|
|
9631
|
+
|
|
9487
9632
|
class CsvInfo(AbstractModel):
|
|
9488
9633
|
"""csv内容描述
|
|
9489
9634
|
|
|
@@ -11962,6 +12107,70 @@ class DeleteTopicResponse(AbstractModel):
|
|
|
11962
12107
|
self._RequestId = params.get("RequestId")
|
|
11963
12108
|
|
|
11964
12109
|
|
|
12110
|
+
class DeleteWebCallbackRequest(AbstractModel):
|
|
12111
|
+
"""DeleteWebCallback请求参数结构体
|
|
12112
|
+
|
|
12113
|
+
"""
|
|
12114
|
+
|
|
12115
|
+
def __init__(self):
|
|
12116
|
+
r"""
|
|
12117
|
+
:param _WebCallbackId: 告警渠道回调配置ID。
|
|
12118
|
+
:type WebCallbackId: str
|
|
12119
|
+
"""
|
|
12120
|
+
self._WebCallbackId = None
|
|
12121
|
+
|
|
12122
|
+
@property
|
|
12123
|
+
def WebCallbackId(self):
|
|
12124
|
+
"""告警渠道回调配置ID。
|
|
12125
|
+
:rtype: str
|
|
12126
|
+
"""
|
|
12127
|
+
return self._WebCallbackId
|
|
12128
|
+
|
|
12129
|
+
@WebCallbackId.setter
|
|
12130
|
+
def WebCallbackId(self, WebCallbackId):
|
|
12131
|
+
self._WebCallbackId = WebCallbackId
|
|
12132
|
+
|
|
12133
|
+
|
|
12134
|
+
def _deserialize(self, params):
|
|
12135
|
+
self._WebCallbackId = params.get("WebCallbackId")
|
|
12136
|
+
memeber_set = set(params.keys())
|
|
12137
|
+
for name, value in vars(self).items():
|
|
12138
|
+
property_name = name[1:]
|
|
12139
|
+
if property_name in memeber_set:
|
|
12140
|
+
memeber_set.remove(property_name)
|
|
12141
|
+
if len(memeber_set) > 0:
|
|
12142
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12143
|
+
|
|
12144
|
+
|
|
12145
|
+
|
|
12146
|
+
class DeleteWebCallbackResponse(AbstractModel):
|
|
12147
|
+
"""DeleteWebCallback返回参数结构体
|
|
12148
|
+
|
|
12149
|
+
"""
|
|
12150
|
+
|
|
12151
|
+
def __init__(self):
|
|
12152
|
+
r"""
|
|
12153
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12154
|
+
:type RequestId: str
|
|
12155
|
+
"""
|
|
12156
|
+
self._RequestId = None
|
|
12157
|
+
|
|
12158
|
+
@property
|
|
12159
|
+
def RequestId(self):
|
|
12160
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12161
|
+
:rtype: str
|
|
12162
|
+
"""
|
|
12163
|
+
return self._RequestId
|
|
12164
|
+
|
|
12165
|
+
@RequestId.setter
|
|
12166
|
+
def RequestId(self, RequestId):
|
|
12167
|
+
self._RequestId = RequestId
|
|
12168
|
+
|
|
12169
|
+
|
|
12170
|
+
def _deserialize(self, params):
|
|
12171
|
+
self._RequestId = params.get("RequestId")
|
|
12172
|
+
|
|
12173
|
+
|
|
11965
12174
|
class DeliverConfig(AbstractModel):
|
|
11966
12175
|
"""投递配置入参
|
|
11967
12176
|
|
|
@@ -16587,8 +16796,8 @@ class DescribeTopicsRequest(AbstractModel):
|
|
|
16587
16796
|
<li>3: topicName 和logsetName 都精确匹配</li></ul>
|
|
16588
16797
|
:type PreciseSearch: int
|
|
16589
16798
|
:param _BizType: 主题类型
|
|
16590
|
-
|
|
16591
|
-
|
|
16799
|
+
- 0:日志主题,默认值
|
|
16800
|
+
- 1:指标主题
|
|
16592
16801
|
:type BizType: int
|
|
16593
16802
|
"""
|
|
16594
16803
|
self._Filters = None
|
|
@@ -16655,8 +16864,8 @@ class DescribeTopicsRequest(AbstractModel):
|
|
|
16655
16864
|
@property
|
|
16656
16865
|
def BizType(self):
|
|
16657
16866
|
"""主题类型
|
|
16658
|
-
|
|
16659
|
-
|
|
16867
|
+
- 0:日志主题,默认值
|
|
16868
|
+
- 1:指标主题
|
|
16660
16869
|
:rtype: int
|
|
16661
16870
|
"""
|
|
16662
16871
|
return self._BizType
|
|
@@ -16750,57 +16959,223 @@ class DescribeTopicsResponse(AbstractModel):
|
|
|
16750
16959
|
self._RequestId = params.get("RequestId")
|
|
16751
16960
|
|
|
16752
16961
|
|
|
16753
|
-
class
|
|
16754
|
-
"""
|
|
16962
|
+
class DescribeWebCallbacksRequest(AbstractModel):
|
|
16963
|
+
"""DescribeWebCallbacks请求参数结构体
|
|
16755
16964
|
|
|
16756
16965
|
"""
|
|
16757
16966
|
|
|
16758
16967
|
def __init__(self):
|
|
16759
16968
|
r"""
|
|
16760
|
-
:param
|
|
16761
|
-
|
|
16762
|
-
|
|
16969
|
+
:param _Filters: - name
|
|
16970
|
+
按照【告警渠道回调配置名称】进行过滤。
|
|
16971
|
+
类型:String
|
|
16972
|
+
必选:否
|
|
16973
|
+
|
|
16974
|
+
- webCallbackId
|
|
16975
|
+
按照【告警渠道回调配置ID】进行过滤。
|
|
16976
|
+
类型:String
|
|
16977
|
+
必选:否
|
|
16978
|
+
|
|
16979
|
+
- type
|
|
16980
|
+
按照【告警渠道回调配置渠道类型】进行过滤。
|
|
16981
|
+
类型:String
|
|
16982
|
+
必选:否
|
|
16983
|
+
|
|
16984
|
+
每次请求的Filters的上限为10,Filter.Values的上限为100。
|
|
16985
|
+
:type Filters: list of Filter
|
|
16986
|
+
:param _Offset: 分页的偏移量,默认值为0。
|
|
16987
|
+
:type Offset: int
|
|
16988
|
+
:param _Limit: 分页单页限制数目,默认值为20,最大值100。
|
|
16989
|
+
:type Limit: int
|
|
16763
16990
|
"""
|
|
16764
|
-
self.
|
|
16991
|
+
self._Filters = None
|
|
16992
|
+
self._Offset = None
|
|
16993
|
+
self._Limit = None
|
|
16765
16994
|
|
|
16766
16995
|
@property
|
|
16767
|
-
def
|
|
16768
|
-
"""
|
|
16769
|
-
|
|
16770
|
-
|
|
16771
|
-
|
|
16772
|
-
return self._Status
|
|
16996
|
+
def Filters(self):
|
|
16997
|
+
"""- name
|
|
16998
|
+
按照【告警渠道回调配置名称】进行过滤。
|
|
16999
|
+
类型:String
|
|
17000
|
+
必选:否
|
|
16773
17001
|
|
|
16774
|
-
|
|
16775
|
-
|
|
16776
|
-
|
|
17002
|
+
- webCallbackId
|
|
17003
|
+
按照【告警渠道回调配置ID】进行过滤。
|
|
17004
|
+
类型:String
|
|
17005
|
+
必选:否
|
|
16777
17006
|
|
|
17007
|
+
- type
|
|
17008
|
+
按照【告警渠道回调配置渠道类型】进行过滤。
|
|
17009
|
+
类型:String
|
|
17010
|
+
必选:否
|
|
16778
17011
|
|
|
16779
|
-
|
|
16780
|
-
|
|
16781
|
-
|
|
16782
|
-
|
|
16783
|
-
property_name = name[1:]
|
|
16784
|
-
if property_name in memeber_set:
|
|
16785
|
-
memeber_set.remove(property_name)
|
|
16786
|
-
if len(memeber_set) > 0:
|
|
16787
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16788
|
-
|
|
17012
|
+
每次请求的Filters的上限为10,Filter.Values的上限为100。
|
|
17013
|
+
:rtype: list of Filter
|
|
17014
|
+
"""
|
|
17015
|
+
return self._Filters
|
|
16789
17016
|
|
|
17017
|
+
@Filters.setter
|
|
17018
|
+
def Filters(self, Filters):
|
|
17019
|
+
self._Filters = Filters
|
|
16790
17020
|
|
|
16791
|
-
|
|
16792
|
-
|
|
17021
|
+
@property
|
|
17022
|
+
def Offset(self):
|
|
17023
|
+
"""分页的偏移量,默认值为0。
|
|
17024
|
+
:rtype: int
|
|
17025
|
+
"""
|
|
17026
|
+
return self._Offset
|
|
16793
17027
|
|
|
16794
|
-
|
|
17028
|
+
@Offset.setter
|
|
17029
|
+
def Offset(self, Offset):
|
|
17030
|
+
self._Offset = Offset
|
|
16795
17031
|
|
|
16796
|
-
|
|
16797
|
-
|
|
16798
|
-
|
|
16799
|
-
:
|
|
16800
|
-
|
|
16801
|
-
|
|
16802
|
-
|
|
16803
|
-
|
|
17032
|
+
@property
|
|
17033
|
+
def Limit(self):
|
|
17034
|
+
"""分页单页限制数目,默认值为20,最大值100。
|
|
17035
|
+
:rtype: int
|
|
17036
|
+
"""
|
|
17037
|
+
return self._Limit
|
|
17038
|
+
|
|
17039
|
+
@Limit.setter
|
|
17040
|
+
def Limit(self, Limit):
|
|
17041
|
+
self._Limit = Limit
|
|
17042
|
+
|
|
17043
|
+
|
|
17044
|
+
def _deserialize(self, params):
|
|
17045
|
+
if params.get("Filters") is not None:
|
|
17046
|
+
self._Filters = []
|
|
17047
|
+
for item in params.get("Filters"):
|
|
17048
|
+
obj = Filter()
|
|
17049
|
+
obj._deserialize(item)
|
|
17050
|
+
self._Filters.append(obj)
|
|
17051
|
+
self._Offset = params.get("Offset")
|
|
17052
|
+
self._Limit = params.get("Limit")
|
|
17053
|
+
memeber_set = set(params.keys())
|
|
17054
|
+
for name, value in vars(self).items():
|
|
17055
|
+
property_name = name[1:]
|
|
17056
|
+
if property_name in memeber_set:
|
|
17057
|
+
memeber_set.remove(property_name)
|
|
17058
|
+
if len(memeber_set) > 0:
|
|
17059
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
17060
|
+
|
|
17061
|
+
|
|
17062
|
+
|
|
17063
|
+
class DescribeWebCallbacksResponse(AbstractModel):
|
|
17064
|
+
"""DescribeWebCallbacks返回参数结构体
|
|
17065
|
+
|
|
17066
|
+
"""
|
|
17067
|
+
|
|
17068
|
+
def __init__(self):
|
|
17069
|
+
r"""
|
|
17070
|
+
:param _WebCallbacks: 告警渠道回调配置列表。
|
|
17071
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17072
|
+
:type WebCallbacks: list of WebCallbackInfo
|
|
17073
|
+
:param _TotalCount: 符合条件的通知内容配置总数。
|
|
17074
|
+
:type TotalCount: int
|
|
17075
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
17076
|
+
:type RequestId: str
|
|
17077
|
+
"""
|
|
17078
|
+
self._WebCallbacks = None
|
|
17079
|
+
self._TotalCount = None
|
|
17080
|
+
self._RequestId = None
|
|
17081
|
+
|
|
17082
|
+
@property
|
|
17083
|
+
def WebCallbacks(self):
|
|
17084
|
+
"""告警渠道回调配置列表。
|
|
17085
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17086
|
+
:rtype: list of WebCallbackInfo
|
|
17087
|
+
"""
|
|
17088
|
+
return self._WebCallbacks
|
|
17089
|
+
|
|
17090
|
+
@WebCallbacks.setter
|
|
17091
|
+
def WebCallbacks(self, WebCallbacks):
|
|
17092
|
+
self._WebCallbacks = WebCallbacks
|
|
17093
|
+
|
|
17094
|
+
@property
|
|
17095
|
+
def TotalCount(self):
|
|
17096
|
+
"""符合条件的通知内容配置总数。
|
|
17097
|
+
:rtype: int
|
|
17098
|
+
"""
|
|
17099
|
+
return self._TotalCount
|
|
17100
|
+
|
|
17101
|
+
@TotalCount.setter
|
|
17102
|
+
def TotalCount(self, TotalCount):
|
|
17103
|
+
self._TotalCount = TotalCount
|
|
17104
|
+
|
|
17105
|
+
@property
|
|
17106
|
+
def RequestId(self):
|
|
17107
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
17108
|
+
:rtype: str
|
|
17109
|
+
"""
|
|
17110
|
+
return self._RequestId
|
|
17111
|
+
|
|
17112
|
+
@RequestId.setter
|
|
17113
|
+
def RequestId(self, RequestId):
|
|
17114
|
+
self._RequestId = RequestId
|
|
17115
|
+
|
|
17116
|
+
|
|
17117
|
+
def _deserialize(self, params):
|
|
17118
|
+
if params.get("WebCallbacks") is not None:
|
|
17119
|
+
self._WebCallbacks = []
|
|
17120
|
+
for item in params.get("WebCallbacks"):
|
|
17121
|
+
obj = WebCallbackInfo()
|
|
17122
|
+
obj._deserialize(item)
|
|
17123
|
+
self._WebCallbacks.append(obj)
|
|
17124
|
+
self._TotalCount = params.get("TotalCount")
|
|
17125
|
+
self._RequestId = params.get("RequestId")
|
|
17126
|
+
|
|
17127
|
+
|
|
17128
|
+
class DynamicIndex(AbstractModel):
|
|
17129
|
+
"""键值索引自动配置,启用后自动将日志内的字段添加到键值索引中,包括日志中后续新增的字段。
|
|
17130
|
+
|
|
17131
|
+
"""
|
|
17132
|
+
|
|
17133
|
+
def __init__(self):
|
|
17134
|
+
r"""
|
|
17135
|
+
:param _Status: 键值索引自动配置开关
|
|
17136
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17137
|
+
:type Status: bool
|
|
17138
|
+
"""
|
|
17139
|
+
self._Status = None
|
|
17140
|
+
|
|
17141
|
+
@property
|
|
17142
|
+
def Status(self):
|
|
17143
|
+
"""键值索引自动配置开关
|
|
17144
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17145
|
+
:rtype: bool
|
|
17146
|
+
"""
|
|
17147
|
+
return self._Status
|
|
17148
|
+
|
|
17149
|
+
@Status.setter
|
|
17150
|
+
def Status(self, Status):
|
|
17151
|
+
self._Status = Status
|
|
17152
|
+
|
|
17153
|
+
|
|
17154
|
+
def _deserialize(self, params):
|
|
17155
|
+
self._Status = params.get("Status")
|
|
17156
|
+
memeber_set = set(params.keys())
|
|
17157
|
+
for name, value in vars(self).items():
|
|
17158
|
+
property_name = name[1:]
|
|
17159
|
+
if property_name in memeber_set:
|
|
17160
|
+
memeber_set.remove(property_name)
|
|
17161
|
+
if len(memeber_set) > 0:
|
|
17162
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
17163
|
+
|
|
17164
|
+
|
|
17165
|
+
|
|
17166
|
+
class EscalateNoticeInfo(AbstractModel):
|
|
17167
|
+
"""升级通知
|
|
17168
|
+
|
|
17169
|
+
"""
|
|
17170
|
+
|
|
17171
|
+
def __init__(self):
|
|
17172
|
+
r"""
|
|
17173
|
+
:param _NoticeReceivers: 告警通知模板接收者信息。
|
|
17174
|
+
:type NoticeReceivers: list of NoticeReceiver
|
|
17175
|
+
:param _WebCallbacks: 告警通知模板回调信息。
|
|
17176
|
+
:type WebCallbacks: list of WebCallback
|
|
17177
|
+
:param _Escalate: 告警升级开关。`true`:开启告警升级、`false`:关闭告警升级,默认:false
|
|
17178
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16804
17179
|
:type Escalate: bool
|
|
16805
17180
|
:param _Interval: 告警升级间隔。单位:分钟,范围`[1,14400]`
|
|
16806
17181
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -16940,6 +17315,10 @@ class EventLog(AbstractModel):
|
|
|
16940
17315
|
:param _Timestamp: 时间,用户选择自定义时间类型时,需要指定时间
|
|
16941
17316
|
:type Timestamp: int
|
|
16942
17317
|
:param _EventIDs: 事件ID过滤列表
|
|
17318
|
+
|
|
17319
|
+
选填,为空表示不做过滤
|
|
17320
|
+
支持正向过滤单个值(例:20)或范围(例:0-20),也支持反向过滤单个值(例:-20)
|
|
17321
|
+
多个过滤项之间可由逗号隔开,例:1-200,-100表示采集1-200范围内除了100以外的事件日志
|
|
16943
17322
|
:type EventIDs: list of str
|
|
16944
17323
|
"""
|
|
16945
17324
|
self._EventChannel = None
|
|
@@ -16984,6 +17363,10 @@ class EventLog(AbstractModel):
|
|
|
16984
17363
|
@property
|
|
16985
17364
|
def EventIDs(self):
|
|
16986
17365
|
"""事件ID过滤列表
|
|
17366
|
+
|
|
17367
|
+
选填,为空表示不做过滤
|
|
17368
|
+
支持正向过滤单个值(例:20)或范围(例:0-20),也支持反向过滤单个值(例:-20)
|
|
17369
|
+
多个过滤项之间可由逗号隔开,例:1-200,-100表示采集1-200范围内除了100以外的事件日志
|
|
16987
17370
|
:rtype: list of str
|
|
16988
17371
|
"""
|
|
16989
17372
|
return self._EventIDs
|
|
@@ -17386,6 +17769,12 @@ auto:自动匹配rfc3164或者rfc5424其中一种协议。
|
|
|
17386
17769
|
- COS导入不支持此字段。
|
|
17387
17770
|
:type MetadataType: int
|
|
17388
17771
|
:param _PathRegex: 采集配置路径正则表达式。
|
|
17772
|
+
|
|
17773
|
+
```
|
|
17774
|
+
请用"()"标识路径中目标字段对应的正则表达式,解析时将"()"视为捕获组,并以__TAG__.{i}:{目标字段}的形式与日志一起上报,其中i为捕获组的序号。
|
|
17775
|
+
若不希望以序号为键名,可以通过命名捕获组"(?<{键名}>{正则})"自定义键名,并以__TAG__.{键名}:{目标字段}的形式与日志一起上报。最多支持5个捕获组
|
|
17776
|
+
```
|
|
17777
|
+
|
|
17389
17778
|
注意:
|
|
17390
17779
|
- MetadataType为3时必填。
|
|
17391
17780
|
- COS导入不支持此字段。
|
|
@@ -17642,6 +18031,12 @@ auto:自动匹配rfc3164或者rfc5424其中一种协议。
|
|
|
17642
18031
|
@property
|
|
17643
18032
|
def PathRegex(self):
|
|
17644
18033
|
"""采集配置路径正则表达式。
|
|
18034
|
+
|
|
18035
|
+
```
|
|
18036
|
+
请用"()"标识路径中目标字段对应的正则表达式,解析时将"()"视为捕获组,并以__TAG__.{i}:{目标字段}的形式与日志一起上报,其中i为捕获组的序号。
|
|
18037
|
+
若不希望以序号为键名,可以通过命名捕获组"(?<{键名}>{正则})"自定义键名,并以__TAG__.{键名}:{目标字段}的形式与日志一起上报。最多支持5个捕获组
|
|
18038
|
+
```
|
|
18039
|
+
|
|
17645
18040
|
注意:
|
|
17646
18041
|
- MetadataType为3时必填。
|
|
17647
18042
|
- COS导入不支持此字段。
|
|
@@ -21780,7 +22175,7 @@ class ModifyConfigExtraRequest(AbstractModel):
|
|
|
21780
22175
|
- multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
|
|
21781
22176
|
- user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310))。
|
|
21782
22177
|
:type LogType: str
|
|
21783
|
-
:param _LogFormat:
|
|
22178
|
+
:param _LogFormat: 日志格式化方式,用于容器采集场景。目前已经废弃
|
|
21784
22179
|
- stdout-docker-json:用于docker容器采集场景
|
|
21785
22180
|
- stdout-containerd:用于containerd容器采集场景
|
|
21786
22181
|
:type LogFormat: str
|
|
@@ -21918,7 +22313,7 @@ class ModifyConfigExtraRequest(AbstractModel):
|
|
|
21918
22313
|
|
|
21919
22314
|
@property
|
|
21920
22315
|
def LogFormat(self):
|
|
21921
|
-
"""
|
|
22316
|
+
"""日志格式化方式,用于容器采集场景。目前已经废弃
|
|
21922
22317
|
- stdout-docker-json:用于docker容器采集场景
|
|
21923
22318
|
- stdout-containerd:用于containerd容器采集场景
|
|
21924
22319
|
:rtype: str
|
|
@@ -24716,6 +25111,157 @@ class ModifyTopicResponse(AbstractModel):
|
|
|
24716
25111
|
self._RequestId = params.get("RequestId")
|
|
24717
25112
|
|
|
24718
25113
|
|
|
25114
|
+
class ModifyWebCallbackRequest(AbstractModel):
|
|
25115
|
+
"""ModifyWebCallback请求参数结构体
|
|
25116
|
+
|
|
25117
|
+
"""
|
|
25118
|
+
|
|
25119
|
+
def __init__(self):
|
|
25120
|
+
r"""
|
|
25121
|
+
:param _WebCallbackId: 告警渠道回调配置ID。
|
|
25122
|
+
:type WebCallbackId: str
|
|
25123
|
+
:param _Name: 告警渠道回调配置名称。
|
|
25124
|
+
:type Name: str
|
|
25125
|
+
:param _Type: 渠道类型
|
|
25126
|
+
|
|
25127
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
|
|
25128
|
+
:type Type: str
|
|
25129
|
+
:param _Webhook: 回调地址。
|
|
25130
|
+
:type Webhook: str
|
|
25131
|
+
:param _Method: 请求方式。
|
|
25132
|
+
|
|
25133
|
+
支持POST、PUT。
|
|
25134
|
+
|
|
25135
|
+
注意:当Type为Http时,必填。
|
|
25136
|
+
:type Method: str
|
|
25137
|
+
:param _Key: 秘钥信息。
|
|
25138
|
+
:type Key: str
|
|
25139
|
+
"""
|
|
25140
|
+
self._WebCallbackId = None
|
|
25141
|
+
self._Name = None
|
|
25142
|
+
self._Type = None
|
|
25143
|
+
self._Webhook = None
|
|
25144
|
+
self._Method = None
|
|
25145
|
+
self._Key = None
|
|
25146
|
+
|
|
25147
|
+
@property
|
|
25148
|
+
def WebCallbackId(self):
|
|
25149
|
+
"""告警渠道回调配置ID。
|
|
25150
|
+
:rtype: str
|
|
25151
|
+
"""
|
|
25152
|
+
return self._WebCallbackId
|
|
25153
|
+
|
|
25154
|
+
@WebCallbackId.setter
|
|
25155
|
+
def WebCallbackId(self, WebCallbackId):
|
|
25156
|
+
self._WebCallbackId = WebCallbackId
|
|
25157
|
+
|
|
25158
|
+
@property
|
|
25159
|
+
def Name(self):
|
|
25160
|
+
"""告警渠道回调配置名称。
|
|
25161
|
+
:rtype: str
|
|
25162
|
+
"""
|
|
25163
|
+
return self._Name
|
|
25164
|
+
|
|
25165
|
+
@Name.setter
|
|
25166
|
+
def Name(self, Name):
|
|
25167
|
+
self._Name = Name
|
|
25168
|
+
|
|
25169
|
+
@property
|
|
25170
|
+
def Type(self):
|
|
25171
|
+
"""渠道类型
|
|
25172
|
+
|
|
25173
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
|
|
25174
|
+
:rtype: str
|
|
25175
|
+
"""
|
|
25176
|
+
return self._Type
|
|
25177
|
+
|
|
25178
|
+
@Type.setter
|
|
25179
|
+
def Type(self, Type):
|
|
25180
|
+
self._Type = Type
|
|
25181
|
+
|
|
25182
|
+
@property
|
|
25183
|
+
def Webhook(self):
|
|
25184
|
+
"""回调地址。
|
|
25185
|
+
:rtype: str
|
|
25186
|
+
"""
|
|
25187
|
+
return self._Webhook
|
|
25188
|
+
|
|
25189
|
+
@Webhook.setter
|
|
25190
|
+
def Webhook(self, Webhook):
|
|
25191
|
+
self._Webhook = Webhook
|
|
25192
|
+
|
|
25193
|
+
@property
|
|
25194
|
+
def Method(self):
|
|
25195
|
+
"""请求方式。
|
|
25196
|
+
|
|
25197
|
+
支持POST、PUT。
|
|
25198
|
+
|
|
25199
|
+
注意:当Type为Http时,必填。
|
|
25200
|
+
:rtype: str
|
|
25201
|
+
"""
|
|
25202
|
+
return self._Method
|
|
25203
|
+
|
|
25204
|
+
@Method.setter
|
|
25205
|
+
def Method(self, Method):
|
|
25206
|
+
self._Method = Method
|
|
25207
|
+
|
|
25208
|
+
@property
|
|
25209
|
+
def Key(self):
|
|
25210
|
+
"""秘钥信息。
|
|
25211
|
+
:rtype: str
|
|
25212
|
+
"""
|
|
25213
|
+
return self._Key
|
|
25214
|
+
|
|
25215
|
+
@Key.setter
|
|
25216
|
+
def Key(self, Key):
|
|
25217
|
+
self._Key = Key
|
|
25218
|
+
|
|
25219
|
+
|
|
25220
|
+
def _deserialize(self, params):
|
|
25221
|
+
self._WebCallbackId = params.get("WebCallbackId")
|
|
25222
|
+
self._Name = params.get("Name")
|
|
25223
|
+
self._Type = params.get("Type")
|
|
25224
|
+
self._Webhook = params.get("Webhook")
|
|
25225
|
+
self._Method = params.get("Method")
|
|
25226
|
+
self._Key = params.get("Key")
|
|
25227
|
+
memeber_set = set(params.keys())
|
|
25228
|
+
for name, value in vars(self).items():
|
|
25229
|
+
property_name = name[1:]
|
|
25230
|
+
if property_name in memeber_set:
|
|
25231
|
+
memeber_set.remove(property_name)
|
|
25232
|
+
if len(memeber_set) > 0:
|
|
25233
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
25234
|
+
|
|
25235
|
+
|
|
25236
|
+
|
|
25237
|
+
class ModifyWebCallbackResponse(AbstractModel):
|
|
25238
|
+
"""ModifyWebCallback返回参数结构体
|
|
25239
|
+
|
|
25240
|
+
"""
|
|
25241
|
+
|
|
25242
|
+
def __init__(self):
|
|
25243
|
+
r"""
|
|
25244
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25245
|
+
:type RequestId: str
|
|
25246
|
+
"""
|
|
25247
|
+
self._RequestId = None
|
|
25248
|
+
|
|
25249
|
+
@property
|
|
25250
|
+
def RequestId(self):
|
|
25251
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25252
|
+
:rtype: str
|
|
25253
|
+
"""
|
|
25254
|
+
return self._RequestId
|
|
25255
|
+
|
|
25256
|
+
@RequestId.setter
|
|
25257
|
+
def RequestId(self, RequestId):
|
|
25258
|
+
self._RequestId = RequestId
|
|
25259
|
+
|
|
25260
|
+
|
|
25261
|
+
def _deserialize(self, params):
|
|
25262
|
+
self._RequestId = params.get("RequestId")
|
|
25263
|
+
|
|
25264
|
+
|
|
24719
25265
|
class MonitorTime(AbstractModel):
|
|
24720
25266
|
"""告警策略中监控任务的执行时间点
|
|
24721
25267
|
|
|
@@ -24807,7 +25353,8 @@ class MultiCondition(AbstractModel):
|
|
|
24807
25353
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24808
25354
|
:type Condition: str
|
|
24809
25355
|
:param _AlarmLevel: 告警级别。0:警告(Warn); 1:提醒(Info); 2:紧急 (Critical)。
|
|
24810
|
-
|
|
25356
|
+
|
|
25357
|
+
- 不填则默认为0。
|
|
24811
25358
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24812
25359
|
:type AlarmLevel: int
|
|
24813
25360
|
"""
|
|
@@ -24829,7 +25376,8 @@ class MultiCondition(AbstractModel):
|
|
|
24829
25376
|
@property
|
|
24830
25377
|
def AlarmLevel(self):
|
|
24831
25378
|
"""告警级别。0:警告(Warn); 1:提醒(Info); 2:紧急 (Critical)。
|
|
24832
|
-
|
|
25379
|
+
|
|
25380
|
+
- 不填则默认为0。
|
|
24833
25381
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24834
25382
|
:rtype: int
|
|
24835
25383
|
"""
|
|
@@ -27920,7 +28468,7 @@ class SearchLogRequest(AbstractModel):
|
|
|
27920
28468
|
- 如需同时检索多个日志主题,请使用Topics参数。
|
|
27921
28469
|
- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。
|
|
27922
28470
|
:type TopicId: str
|
|
27923
|
-
:param _Topics: - 要检索分析的日志主题列表,最大支持
|
|
28471
|
+
:param _Topics: - 要检索分析的日志主题列表,最大支持50个日志主题。
|
|
27924
28472
|
- 检索单个日志主题时请使用TopicId。
|
|
27925
28473
|
- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。
|
|
27926
28474
|
:type Topics: list of MultiTopicSearchInformation
|
|
@@ -28040,7 +28588,7 @@ class SearchLogRequest(AbstractModel):
|
|
|
28040
28588
|
|
|
28041
28589
|
@property
|
|
28042
28590
|
def Topics(self):
|
|
28043
|
-
"""- 要检索分析的日志主题列表,最大支持
|
|
28591
|
+
"""- 要检索分析的日志主题列表,最大支持50个日志主题。
|
|
28044
28592
|
- 检索单个日志主题时请使用TopicId。
|
|
28045
28593
|
- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。
|
|
28046
28594
|
:rtype: list of MultiTopicSearchInformation
|
|
@@ -30115,4 +30663,199 @@ class WebCallback(AbstractModel):
|
|
|
30115
30663
|
memeber_set.remove(property_name)
|
|
30116
30664
|
if len(memeber_set) > 0:
|
|
30117
30665
|
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30666
|
+
|
|
30667
|
+
|
|
30668
|
+
|
|
30669
|
+
class WebCallbackInfo(AbstractModel):
|
|
30670
|
+
"""告警渠道回调配置信息
|
|
30671
|
+
|
|
30672
|
+
"""
|
|
30673
|
+
|
|
30674
|
+
def __init__(self):
|
|
30675
|
+
r"""
|
|
30676
|
+
:param _WebCallbackId: 告警渠道回调配置id。
|
|
30677
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30678
|
+
:type WebCallbackId: str
|
|
30679
|
+
:param _Name: 告警渠道回调配置名称。
|
|
30680
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30681
|
+
:type Name: str
|
|
30682
|
+
:param _Type: 渠道类型
|
|
30683
|
+
|
|
30684
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
|
|
30685
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30686
|
+
:type Type: str
|
|
30687
|
+
:param _Webhook: 回调地址。
|
|
30688
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30689
|
+
:type Webhook: str
|
|
30690
|
+
:param _Method: 请求方式。
|
|
30691
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30692
|
+
:type Method: str
|
|
30693
|
+
:param _Key: 秘钥信息。
|
|
30694
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30695
|
+
:type Key: str
|
|
30696
|
+
:param _Uin: 主账号。
|
|
30697
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30698
|
+
:type Uin: int
|
|
30699
|
+
:param _SubUin: 子账号。
|
|
30700
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30701
|
+
:type SubUin: int
|
|
30702
|
+
:param _CreateTime: 创建时间。秒级时间戳
|
|
30703
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30704
|
+
:type CreateTime: int
|
|
30705
|
+
:param _UpdateTime: 更新时间。秒级时间戳
|
|
30706
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30707
|
+
:type UpdateTime: int
|
|
30708
|
+
"""
|
|
30709
|
+
self._WebCallbackId = None
|
|
30710
|
+
self._Name = None
|
|
30711
|
+
self._Type = None
|
|
30712
|
+
self._Webhook = None
|
|
30713
|
+
self._Method = None
|
|
30714
|
+
self._Key = None
|
|
30715
|
+
self._Uin = None
|
|
30716
|
+
self._SubUin = None
|
|
30717
|
+
self._CreateTime = None
|
|
30718
|
+
self._UpdateTime = None
|
|
30719
|
+
|
|
30720
|
+
@property
|
|
30721
|
+
def WebCallbackId(self):
|
|
30722
|
+
"""告警渠道回调配置id。
|
|
30723
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30724
|
+
:rtype: str
|
|
30725
|
+
"""
|
|
30726
|
+
return self._WebCallbackId
|
|
30727
|
+
|
|
30728
|
+
@WebCallbackId.setter
|
|
30729
|
+
def WebCallbackId(self, WebCallbackId):
|
|
30730
|
+
self._WebCallbackId = WebCallbackId
|
|
30731
|
+
|
|
30732
|
+
@property
|
|
30733
|
+
def Name(self):
|
|
30734
|
+
"""告警渠道回调配置名称。
|
|
30735
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30736
|
+
:rtype: str
|
|
30737
|
+
"""
|
|
30738
|
+
return self._Name
|
|
30739
|
+
|
|
30740
|
+
@Name.setter
|
|
30741
|
+
def Name(self, Name):
|
|
30742
|
+
self._Name = Name
|
|
30743
|
+
|
|
30744
|
+
@property
|
|
30745
|
+
def Type(self):
|
|
30746
|
+
"""渠道类型
|
|
30747
|
+
|
|
30748
|
+
WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
|
|
30749
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30750
|
+
:rtype: str
|
|
30751
|
+
"""
|
|
30752
|
+
return self._Type
|
|
30753
|
+
|
|
30754
|
+
@Type.setter
|
|
30755
|
+
def Type(self, Type):
|
|
30756
|
+
self._Type = Type
|
|
30757
|
+
|
|
30758
|
+
@property
|
|
30759
|
+
def Webhook(self):
|
|
30760
|
+
"""回调地址。
|
|
30761
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30762
|
+
:rtype: str
|
|
30763
|
+
"""
|
|
30764
|
+
return self._Webhook
|
|
30765
|
+
|
|
30766
|
+
@Webhook.setter
|
|
30767
|
+
def Webhook(self, Webhook):
|
|
30768
|
+
self._Webhook = Webhook
|
|
30769
|
+
|
|
30770
|
+
@property
|
|
30771
|
+
def Method(self):
|
|
30772
|
+
"""请求方式。
|
|
30773
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30774
|
+
:rtype: str
|
|
30775
|
+
"""
|
|
30776
|
+
return self._Method
|
|
30777
|
+
|
|
30778
|
+
@Method.setter
|
|
30779
|
+
def Method(self, Method):
|
|
30780
|
+
self._Method = Method
|
|
30781
|
+
|
|
30782
|
+
@property
|
|
30783
|
+
def Key(self):
|
|
30784
|
+
"""秘钥信息。
|
|
30785
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30786
|
+
:rtype: str
|
|
30787
|
+
"""
|
|
30788
|
+
return self._Key
|
|
30789
|
+
|
|
30790
|
+
@Key.setter
|
|
30791
|
+
def Key(self, Key):
|
|
30792
|
+
self._Key = Key
|
|
30793
|
+
|
|
30794
|
+
@property
|
|
30795
|
+
def Uin(self):
|
|
30796
|
+
"""主账号。
|
|
30797
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30798
|
+
:rtype: int
|
|
30799
|
+
"""
|
|
30800
|
+
return self._Uin
|
|
30801
|
+
|
|
30802
|
+
@Uin.setter
|
|
30803
|
+
def Uin(self, Uin):
|
|
30804
|
+
self._Uin = Uin
|
|
30805
|
+
|
|
30806
|
+
@property
|
|
30807
|
+
def SubUin(self):
|
|
30808
|
+
"""子账号。
|
|
30809
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30810
|
+
:rtype: int
|
|
30811
|
+
"""
|
|
30812
|
+
return self._SubUin
|
|
30813
|
+
|
|
30814
|
+
@SubUin.setter
|
|
30815
|
+
def SubUin(self, SubUin):
|
|
30816
|
+
self._SubUin = SubUin
|
|
30817
|
+
|
|
30818
|
+
@property
|
|
30819
|
+
def CreateTime(self):
|
|
30820
|
+
"""创建时间。秒级时间戳
|
|
30821
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30822
|
+
:rtype: int
|
|
30823
|
+
"""
|
|
30824
|
+
return self._CreateTime
|
|
30825
|
+
|
|
30826
|
+
@CreateTime.setter
|
|
30827
|
+
def CreateTime(self, CreateTime):
|
|
30828
|
+
self._CreateTime = CreateTime
|
|
30829
|
+
|
|
30830
|
+
@property
|
|
30831
|
+
def UpdateTime(self):
|
|
30832
|
+
"""更新时间。秒级时间戳
|
|
30833
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30834
|
+
:rtype: int
|
|
30835
|
+
"""
|
|
30836
|
+
return self._UpdateTime
|
|
30837
|
+
|
|
30838
|
+
@UpdateTime.setter
|
|
30839
|
+
def UpdateTime(self, UpdateTime):
|
|
30840
|
+
self._UpdateTime = UpdateTime
|
|
30841
|
+
|
|
30842
|
+
|
|
30843
|
+
def _deserialize(self, params):
|
|
30844
|
+
self._WebCallbackId = params.get("WebCallbackId")
|
|
30845
|
+
self._Name = params.get("Name")
|
|
30846
|
+
self._Type = params.get("Type")
|
|
30847
|
+
self._Webhook = params.get("Webhook")
|
|
30848
|
+
self._Method = params.get("Method")
|
|
30849
|
+
self._Key = params.get("Key")
|
|
30850
|
+
self._Uin = params.get("Uin")
|
|
30851
|
+
self._SubUin = params.get("SubUin")
|
|
30852
|
+
self._CreateTime = params.get("CreateTime")
|
|
30853
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
30854
|
+
memeber_set = set(params.keys())
|
|
30855
|
+
for name, value in vars(self).items():
|
|
30856
|
+
property_name = name[1:]
|
|
30857
|
+
if property_name in memeber_set:
|
|
30858
|
+
memeber_set.remove(property_name)
|
|
30859
|
+
if len(memeber_set) > 0:
|
|
30860
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30118
30861
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1297
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1286
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|