tencentcloud-sdk-python-cls 3.0.1243__tar.gz → 3.0.1280__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.1243 → tencentcloud-sdk-python-cls-3.0.1280}/PKG-INFO +3 -3
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/setup.cfg +0 -1
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/setup.py +1 -1
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/tencentcloud/cls/v20201016/cls_client.py +195 -3
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/tencentcloud/cls/v20201016/errorcodes.py +3 -0
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/tencentcloud/cls/v20201016/models.py +7968 -420
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/tencentcloud_sdk_python_cls.egg-info/PKG-INFO +3 -3
- tencentcloud-sdk-python-cls-3.0.1280/tencentcloud_sdk_python_cls.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cls-3.0.1243/tencentcloud_sdk_python_cls.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/README.rst +0 -0
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/tencentcloud/cls/__init__.py +0 -0
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/tencentcloud/cls/v20201016/__init__.py +0 -0
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/tencentcloud_sdk_python_cls.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/tencentcloud_sdk_python_cls.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cls-3.0.1243 → tencentcloud-sdk-python-cls-3.0.1280}/tencentcloud_sdk_python_cls.egg-info/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-cls
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1280
|
|
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
|
|
7
|
-
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description: ============================
|
|
10
10
|
Tencent Cloud SDK for Python
|
|
@@ -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.1280"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cls SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -165,7 +165,14 @@ class ClsClient(AbstractClient):
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
def CreateAlarmNotice(self, request):
|
|
168
|
-
"""
|
|
168
|
+
"""该接口用于创建通知渠道组,提供两种配置模式,二选一:
|
|
169
|
+
1,简易模式,提供最基本的通知渠道功能。需填写如下参数:
|
|
170
|
+
- Type
|
|
171
|
+
- NoticeReceivers
|
|
172
|
+
- WebCallbacks
|
|
173
|
+
|
|
174
|
+
2,高级模式,在简易模式基础上,支持设定规则,为不同类型的告警分别设定通知渠道,并支持告警升级功能。需填写如下参数:
|
|
175
|
+
- NoticeRules
|
|
169
176
|
|
|
170
177
|
:param request: Request instance for CreateAlarmNotice.
|
|
171
178
|
:type request: :class:`tencentcloud.cls.v20201016.models.CreateAlarmNoticeRequest`
|
|
@@ -210,6 +217,29 @@ class ClsClient(AbstractClient):
|
|
|
210
217
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
211
218
|
|
|
212
219
|
|
|
220
|
+
def CreateCloudProductLogTask(self, request):
|
|
221
|
+
"""内部云产品接入使用相关接口
|
|
222
|
+
|
|
223
|
+
:param request: Request instance for CreateCloudProductLogTask.
|
|
224
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.CreateCloudProductLogTaskRequest`
|
|
225
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.CreateCloudProductLogTaskResponse`
|
|
226
|
+
|
|
227
|
+
"""
|
|
228
|
+
try:
|
|
229
|
+
params = request._serialize()
|
|
230
|
+
headers = request.headers
|
|
231
|
+
body = self.call("CreateCloudProductLogTask", params, headers=headers)
|
|
232
|
+
response = json.loads(body)
|
|
233
|
+
model = models.CreateCloudProductLogTaskResponse()
|
|
234
|
+
model._deserialize(response["Response"])
|
|
235
|
+
return model
|
|
236
|
+
except Exception as e:
|
|
237
|
+
if isinstance(e, TencentCloudSDKException):
|
|
238
|
+
raise
|
|
239
|
+
else:
|
|
240
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
241
|
+
|
|
242
|
+
|
|
213
243
|
def CreateConfig(self, request):
|
|
214
244
|
"""创建采集规则配置
|
|
215
245
|
|
|
@@ -509,6 +539,29 @@ class ClsClient(AbstractClient):
|
|
|
509
539
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
510
540
|
|
|
511
541
|
|
|
542
|
+
def CreateNoticeContent(self, request):
|
|
543
|
+
"""该接口用于创建通知内容。
|
|
544
|
+
|
|
545
|
+
:param request: Request instance for CreateNoticeContent.
|
|
546
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.CreateNoticeContentRequest`
|
|
547
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.CreateNoticeContentResponse`
|
|
548
|
+
|
|
549
|
+
"""
|
|
550
|
+
try:
|
|
551
|
+
params = request._serialize()
|
|
552
|
+
headers = request.headers
|
|
553
|
+
body = self.call("CreateNoticeContent", params, headers=headers)
|
|
554
|
+
response = json.loads(body)
|
|
555
|
+
model = models.CreateNoticeContentResponse()
|
|
556
|
+
model._deserialize(response["Response"])
|
|
557
|
+
return model
|
|
558
|
+
except Exception as e:
|
|
559
|
+
if isinstance(e, TencentCloudSDKException):
|
|
560
|
+
raise
|
|
561
|
+
else:
|
|
562
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
563
|
+
|
|
564
|
+
|
|
512
565
|
def CreateScheduledSql(self, request):
|
|
513
566
|
"""本接口用于创建定时SQL分析任务
|
|
514
567
|
|
|
@@ -647,6 +700,29 @@ class ClsClient(AbstractClient):
|
|
|
647
700
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
648
701
|
|
|
649
702
|
|
|
703
|
+
def DeleteCloudProductLogTask(self, request):
|
|
704
|
+
"""内部云产品接入使用相关接口
|
|
705
|
+
|
|
706
|
+
:param request: Request instance for DeleteCloudProductLogTask.
|
|
707
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DeleteCloudProductLogTaskRequest`
|
|
708
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DeleteCloudProductLogTaskResponse`
|
|
709
|
+
|
|
710
|
+
"""
|
|
711
|
+
try:
|
|
712
|
+
params = request._serialize()
|
|
713
|
+
headers = request.headers
|
|
714
|
+
body = self.call("DeleteCloudProductLogTask", params, headers=headers)
|
|
715
|
+
response = json.loads(body)
|
|
716
|
+
model = models.DeleteCloudProductLogTaskResponse()
|
|
717
|
+
model._deserialize(response["Response"])
|
|
718
|
+
return model
|
|
719
|
+
except Exception as e:
|
|
720
|
+
if isinstance(e, TencentCloudSDKException):
|
|
721
|
+
raise
|
|
722
|
+
else:
|
|
723
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
724
|
+
|
|
725
|
+
|
|
650
726
|
def DeleteConfig(self, request):
|
|
651
727
|
"""删除采集规则配置
|
|
652
728
|
|
|
@@ -946,6 +1022,29 @@ class ClsClient(AbstractClient):
|
|
|
946
1022
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
947
1023
|
|
|
948
1024
|
|
|
1025
|
+
def DeleteNoticeContent(self, request):
|
|
1026
|
+
"""该接口用于删除通知内容配置
|
|
1027
|
+
|
|
1028
|
+
:param request: Request instance for DeleteNoticeContent.
|
|
1029
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DeleteNoticeContentRequest`
|
|
1030
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DeleteNoticeContentResponse`
|
|
1031
|
+
|
|
1032
|
+
"""
|
|
1033
|
+
try:
|
|
1034
|
+
params = request._serialize()
|
|
1035
|
+
headers = request.headers
|
|
1036
|
+
body = self.call("DeleteNoticeContent", params, headers=headers)
|
|
1037
|
+
response = json.loads(body)
|
|
1038
|
+
model = models.DeleteNoticeContentResponse()
|
|
1039
|
+
model._deserialize(response["Response"])
|
|
1040
|
+
return model
|
|
1041
|
+
except Exception as e:
|
|
1042
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1043
|
+
raise
|
|
1044
|
+
else:
|
|
1045
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1046
|
+
|
|
1047
|
+
|
|
949
1048
|
def DeleteScheduledSql(self, request):
|
|
950
1049
|
"""本接口用于删除定时SQL分析任务
|
|
951
1050
|
|
|
@@ -1107,6 +1206,29 @@ class ClsClient(AbstractClient):
|
|
|
1107
1206
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1108
1207
|
|
|
1109
1208
|
|
|
1209
|
+
def DescribeCloudProductLogTasks(self, request):
|
|
1210
|
+
"""云产品接入使用相关接口
|
|
1211
|
+
|
|
1212
|
+
:param request: Request instance for DescribeCloudProductLogTasks.
|
|
1213
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DescribeCloudProductLogTasksRequest`
|
|
1214
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DescribeCloudProductLogTasksResponse`
|
|
1215
|
+
|
|
1216
|
+
"""
|
|
1217
|
+
try:
|
|
1218
|
+
params = request._serialize()
|
|
1219
|
+
headers = request.headers
|
|
1220
|
+
body = self.call("DescribeCloudProductLogTasks", params, headers=headers)
|
|
1221
|
+
response = json.loads(body)
|
|
1222
|
+
model = models.DescribeCloudProductLogTasksResponse()
|
|
1223
|
+
model._deserialize(response["Response"])
|
|
1224
|
+
return model
|
|
1225
|
+
except Exception as e:
|
|
1226
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1227
|
+
raise
|
|
1228
|
+
else:
|
|
1229
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1230
|
+
|
|
1231
|
+
|
|
1110
1232
|
def DescribeConfigExtras(self, request):
|
|
1111
1233
|
"""本接口用于获取特殊采集配置,特殊采集配置应用于自建K8S环境的采集Agent
|
|
1112
1234
|
|
|
@@ -1545,6 +1667,29 @@ class ClsClient(AbstractClient):
|
|
|
1545
1667
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1546
1668
|
|
|
1547
1669
|
|
|
1670
|
+
def DescribeNoticeContents(self, request):
|
|
1671
|
+
"""获取通知内容列表
|
|
1672
|
+
|
|
1673
|
+
:param request: Request instance for DescribeNoticeContents.
|
|
1674
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DescribeNoticeContentsRequest`
|
|
1675
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DescribeNoticeContentsResponse`
|
|
1676
|
+
|
|
1677
|
+
"""
|
|
1678
|
+
try:
|
|
1679
|
+
params = request._serialize()
|
|
1680
|
+
headers = request.headers
|
|
1681
|
+
body = self.call("DescribeNoticeContents", params, headers=headers)
|
|
1682
|
+
response = json.loads(body)
|
|
1683
|
+
model = models.DescribeNoticeContentsResponse()
|
|
1684
|
+
model._deserialize(response["Response"])
|
|
1685
|
+
return model
|
|
1686
|
+
except Exception as e:
|
|
1687
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1688
|
+
raise
|
|
1689
|
+
else:
|
|
1690
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1691
|
+
|
|
1692
|
+
|
|
1548
1693
|
def DescribePartitions(self, request):
|
|
1549
1694
|
"""该接口已废弃,如需获取分区数量,请使用DescribeTopics接口。
|
|
1550
1695
|
|
|
@@ -1775,6 +1920,29 @@ class ClsClient(AbstractClient):
|
|
|
1775
1920
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1776
1921
|
|
|
1777
1922
|
|
|
1923
|
+
def ModifyCloudProductLogTask(self, request):
|
|
1924
|
+
"""内部云产品接入使用相关接口
|
|
1925
|
+
|
|
1926
|
+
:param request: Request instance for ModifyCloudProductLogTask.
|
|
1927
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.ModifyCloudProductLogTaskRequest`
|
|
1928
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.ModifyCloudProductLogTaskResponse`
|
|
1929
|
+
|
|
1930
|
+
"""
|
|
1931
|
+
try:
|
|
1932
|
+
params = request._serialize()
|
|
1933
|
+
headers = request.headers
|
|
1934
|
+
body = self.call("ModifyCloudProductLogTask", params, headers=headers)
|
|
1935
|
+
response = json.loads(body)
|
|
1936
|
+
model = models.ModifyCloudProductLogTaskResponse()
|
|
1937
|
+
model._deserialize(response["Response"])
|
|
1938
|
+
return model
|
|
1939
|
+
except Exception as e:
|
|
1940
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1941
|
+
raise
|
|
1942
|
+
else:
|
|
1943
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1944
|
+
|
|
1945
|
+
|
|
1778
1946
|
def ModifyConfig(self, request):
|
|
1779
1947
|
"""修改采集规则配置
|
|
1780
1948
|
|
|
@@ -2051,6 +2219,29 @@ class ClsClient(AbstractClient):
|
|
|
2051
2219
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2052
2220
|
|
|
2053
2221
|
|
|
2222
|
+
def ModifyNoticeContent(self, request):
|
|
2223
|
+
"""该接口用于修改通知内容配置
|
|
2224
|
+
|
|
2225
|
+
:param request: Request instance for ModifyNoticeContent.
|
|
2226
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.ModifyNoticeContentRequest`
|
|
2227
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.ModifyNoticeContentResponse`
|
|
2228
|
+
|
|
2229
|
+
"""
|
|
2230
|
+
try:
|
|
2231
|
+
params = request._serialize()
|
|
2232
|
+
headers = request.headers
|
|
2233
|
+
body = self.call("ModifyNoticeContent", params, headers=headers)
|
|
2234
|
+
response = json.loads(body)
|
|
2235
|
+
model = models.ModifyNoticeContentResponse()
|
|
2236
|
+
model._deserialize(response["Response"])
|
|
2237
|
+
return model
|
|
2238
|
+
except Exception as e:
|
|
2239
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2240
|
+
raise
|
|
2241
|
+
else:
|
|
2242
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2243
|
+
|
|
2244
|
+
|
|
2054
2245
|
def ModifyScheduledSql(self, request):
|
|
2055
2246
|
"""本接口用于修改定时SQL分析任务
|
|
2056
2247
|
|
|
@@ -2167,7 +2358,8 @@ class ClsClient(AbstractClient):
|
|
|
2167
2358
|
|
|
2168
2359
|
|
|
2169
2360
|
def QueryMetric(self, request):
|
|
2170
|
-
"""
|
|
2361
|
+
"""查询指定时刻指标的最新值。
|
|
2362
|
+
如果该时刻向前推5分钟内均无指标数据,则无相应的查询结果。
|
|
2171
2363
|
|
|
2172
2364
|
:param request: Request instance for QueryMetric.
|
|
2173
2365
|
:type request: :class:`tencentcloud.cls.v20201016.models.QueryMetricRequest`
|
|
@@ -2284,7 +2476,7 @@ class ClsClient(AbstractClient):
|
|
|
2284
2476
|
def SearchLog(self, request):
|
|
2285
2477
|
"""本接口用于检索分析日志,使用该接口时请注意如下事项:
|
|
2286
2478
|
1. 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。
|
|
2287
|
-
2.
|
|
2479
|
+
2. 检索语法建议使用日志服务专用检索语法CQL,请使用SyntaxRule参数,将值设置为1,控制台默认也使用该语法规则。
|
|
2288
2480
|
3. API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
|
|
2289
2481
|
|
|
2290
2482
|
:param request: Request instance for SearchLog.
|
|
@@ -122,6 +122,9 @@ INTERNALERROR_SEARCHERROR = 'InternalError.SearchError'
|
|
|
122
122
|
# 检索失败
|
|
123
123
|
INTERNALERROR_SEARCHFAILED = 'InternalError.SearchFailed'
|
|
124
124
|
|
|
125
|
+
# 内部错误服务器繁忙
|
|
126
|
+
INTERNALERROR_SERVERBUSY = 'InternalError.ServerBusy'
|
|
127
|
+
|
|
125
128
|
# 参数错误。
|
|
126
129
|
INVALIDPARAMETER = 'InvalidParameter'
|
|
127
130
|
|