tencentcloud-sdk-python-cat 3.0.1459__py2.py3-none-any.whl → 3.1.84__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/cat/v20180409/cat_client_async.py +279 -0
- tencentcloud/cat/v20180409/errorcodes.py +3 -0
- {tencentcloud_sdk_python_cat-3.0.1459.dist-info → tencentcloud_sdk_python_cat-3.1.84.dist-info}/METADATA +2 -4
- tencentcloud_sdk_python_cat-3.1.84.dist-info/RECORD +11 -0
- {tencentcloud_sdk_python_cat-3.0.1459.dist-info → tencentcloud_sdk_python_cat-3.1.84.dist-info}/WHEEL +1 -1
- tencentcloud_sdk_python_cat-3.0.1459.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_cat-3.0.1459.dist-info → tencentcloud_sdk_python_cat-3.1.84.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_client_async import AbstractClient
|
|
19
|
+
from tencentcloud.cat.v20180409 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CatClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2018-04-09'
|
|
25
|
+
_endpoint = 'cat.tencentcloudapi.com'
|
|
26
|
+
_service = 'cat'
|
|
27
|
+
|
|
28
|
+
async def CreateProbeTasks(
|
|
29
|
+
self,
|
|
30
|
+
request: models.CreateProbeTasksRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.CreateProbeTasksResponse:
|
|
33
|
+
"""
|
|
34
|
+
批量创建拨测任务
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "CreateProbeTasks"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.CreateProbeTasksResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
46
|
+
async def DeleteProbeTask(
|
|
47
|
+
self,
|
|
48
|
+
request: models.DeleteProbeTaskRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.DeleteProbeTaskResponse:
|
|
51
|
+
"""
|
|
52
|
+
删除拨测任务
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "DeleteProbeTask"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.DeleteProbeTaskResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def DescribeDetailedSingleProbeData(
|
|
65
|
+
self,
|
|
66
|
+
request: models.DescribeDetailedSingleProbeDataRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.DescribeDetailedSingleProbeDataResponse:
|
|
69
|
+
"""
|
|
70
|
+
根据时间范围、任务ID、运营商等条件查询单次拨测详情数据
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "DescribeDetailedSingleProbeData"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.DescribeDetailedSingleProbeDataResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
80
|
+
return await self.call_and_deserialize(**kwargs)
|
|
81
|
+
|
|
82
|
+
async def DescribeInstantTasks(
|
|
83
|
+
self,
|
|
84
|
+
request: models.DescribeInstantTasksRequest,
|
|
85
|
+
opts: Dict = None,
|
|
86
|
+
) -> models.DescribeInstantTasksResponse:
|
|
87
|
+
"""
|
|
88
|
+
获取历史即时拨测任务
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = {}
|
|
92
|
+
kwargs["action"] = "DescribeInstantTasks"
|
|
93
|
+
kwargs["params"] = request._serialize()
|
|
94
|
+
kwargs["resp_cls"] = models.DescribeInstantTasksResponse
|
|
95
|
+
kwargs["headers"] = request.headers
|
|
96
|
+
kwargs["opts"] = opts or {}
|
|
97
|
+
|
|
98
|
+
return await self.call_and_deserialize(**kwargs)
|
|
99
|
+
|
|
100
|
+
async def DescribeNodeGroups(
|
|
101
|
+
self,
|
|
102
|
+
request: models.DescribeNodeGroupsRequest,
|
|
103
|
+
opts: Dict = None,
|
|
104
|
+
) -> models.DescribeNodeGroupsResponse:
|
|
105
|
+
"""
|
|
106
|
+
获取拨测点组(可用性拨测点组、高级拨测点组、我的拨测点组)
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
kwargs = {}
|
|
110
|
+
kwargs["action"] = "DescribeNodeGroups"
|
|
111
|
+
kwargs["params"] = request._serialize()
|
|
112
|
+
kwargs["resp_cls"] = models.DescribeNodeGroupsResponse
|
|
113
|
+
kwargs["headers"] = request.headers
|
|
114
|
+
kwargs["opts"] = opts or {}
|
|
115
|
+
|
|
116
|
+
return await self.call_and_deserialize(**kwargs)
|
|
117
|
+
|
|
118
|
+
async def DescribeNodes(
|
|
119
|
+
self,
|
|
120
|
+
request: models.DescribeNodesRequest,
|
|
121
|
+
opts: Dict = None,
|
|
122
|
+
) -> models.DescribeNodesResponse:
|
|
123
|
+
"""
|
|
124
|
+
获取拨测节点
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = {}
|
|
128
|
+
kwargs["action"] = "DescribeNodes"
|
|
129
|
+
kwargs["params"] = request._serialize()
|
|
130
|
+
kwargs["resp_cls"] = models.DescribeNodesResponse
|
|
131
|
+
kwargs["headers"] = request.headers
|
|
132
|
+
kwargs["opts"] = opts or {}
|
|
133
|
+
|
|
134
|
+
return await self.call_and_deserialize(**kwargs)
|
|
135
|
+
|
|
136
|
+
async def DescribeProbeMetricData(
|
|
137
|
+
self,
|
|
138
|
+
request: models.DescribeProbeMetricDataRequest,
|
|
139
|
+
opts: Dict = None,
|
|
140
|
+
) -> models.DescribeProbeMetricDataResponse:
|
|
141
|
+
"""
|
|
142
|
+
查询云拨测指标数据,指标支持使用sum,avg,max,min聚合函数进行指标数据查询
|
|
143
|
+
拨测频率与groupby聚合时间设置关联,如拨测频率为 30 分钟,则 grouby 聚合时间建议设置为大于30分钟,避免出现查询数据为空的情况
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
kwargs = {}
|
|
147
|
+
kwargs["action"] = "DescribeProbeMetricData"
|
|
148
|
+
kwargs["params"] = request._serialize()
|
|
149
|
+
kwargs["resp_cls"] = models.DescribeProbeMetricDataResponse
|
|
150
|
+
kwargs["headers"] = request.headers
|
|
151
|
+
kwargs["opts"] = opts or {}
|
|
152
|
+
|
|
153
|
+
return await self.call_and_deserialize(**kwargs)
|
|
154
|
+
|
|
155
|
+
async def DescribeProbeMetricTagValues(
|
|
156
|
+
self,
|
|
157
|
+
request: models.DescribeProbeMetricTagValuesRequest,
|
|
158
|
+
opts: Dict = None,
|
|
159
|
+
) -> models.DescribeProbeMetricTagValuesResponse:
|
|
160
|
+
"""
|
|
161
|
+
查询同个任务类型下的维度标签值,包括查询用户任务信息,具体任务下的多个维度标签信息。(通过为DescribeProbeMetricData接口的Filters参数添加维度筛选条件,可实现多维数据分析)
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
kwargs = {}
|
|
165
|
+
kwargs["action"] = "DescribeProbeMetricTagValues"
|
|
166
|
+
kwargs["params"] = request._serialize()
|
|
167
|
+
kwargs["resp_cls"] = models.DescribeProbeMetricTagValuesResponse
|
|
168
|
+
kwargs["headers"] = request.headers
|
|
169
|
+
kwargs["opts"] = opts or {}
|
|
170
|
+
|
|
171
|
+
return await self.call_and_deserialize(**kwargs)
|
|
172
|
+
|
|
173
|
+
async def DescribeProbeNodes(
|
|
174
|
+
self,
|
|
175
|
+
request: models.DescribeProbeNodesRequest,
|
|
176
|
+
opts: Dict = None,
|
|
177
|
+
) -> models.DescribeProbeNodesResponse:
|
|
178
|
+
"""
|
|
179
|
+
查询拨测节点
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
kwargs = {}
|
|
183
|
+
kwargs["action"] = "DescribeProbeNodes"
|
|
184
|
+
kwargs["params"] = request._serialize()
|
|
185
|
+
kwargs["resp_cls"] = models.DescribeProbeNodesResponse
|
|
186
|
+
kwargs["headers"] = request.headers
|
|
187
|
+
kwargs["opts"] = opts or {}
|
|
188
|
+
|
|
189
|
+
return await self.call_and_deserialize(**kwargs)
|
|
190
|
+
|
|
191
|
+
async def DescribeProbeTasks(
|
|
192
|
+
self,
|
|
193
|
+
request: models.DescribeProbeTasksRequest,
|
|
194
|
+
opts: Dict = None,
|
|
195
|
+
) -> models.DescribeProbeTasksResponse:
|
|
196
|
+
"""
|
|
197
|
+
查询拨测任务列表
|
|
198
|
+
"""
|
|
199
|
+
|
|
200
|
+
kwargs = {}
|
|
201
|
+
kwargs["action"] = "DescribeProbeTasks"
|
|
202
|
+
kwargs["params"] = request._serialize()
|
|
203
|
+
kwargs["resp_cls"] = models.DescribeProbeTasksResponse
|
|
204
|
+
kwargs["headers"] = request.headers
|
|
205
|
+
kwargs["opts"] = opts or {}
|
|
206
|
+
|
|
207
|
+
return await self.call_and_deserialize(**kwargs)
|
|
208
|
+
|
|
209
|
+
async def ResumeProbeTask(
|
|
210
|
+
self,
|
|
211
|
+
request: models.ResumeProbeTaskRequest,
|
|
212
|
+
opts: Dict = None,
|
|
213
|
+
) -> models.ResumeProbeTaskResponse:
|
|
214
|
+
"""
|
|
215
|
+
恢复拨测任务
|
|
216
|
+
"""
|
|
217
|
+
|
|
218
|
+
kwargs = {}
|
|
219
|
+
kwargs["action"] = "ResumeProbeTask"
|
|
220
|
+
kwargs["params"] = request._serialize()
|
|
221
|
+
kwargs["resp_cls"] = models.ResumeProbeTaskResponse
|
|
222
|
+
kwargs["headers"] = request.headers
|
|
223
|
+
kwargs["opts"] = opts or {}
|
|
224
|
+
|
|
225
|
+
return await self.call_and_deserialize(**kwargs)
|
|
226
|
+
|
|
227
|
+
async def SuspendProbeTask(
|
|
228
|
+
self,
|
|
229
|
+
request: models.SuspendProbeTaskRequest,
|
|
230
|
+
opts: Dict = None,
|
|
231
|
+
) -> models.SuspendProbeTaskResponse:
|
|
232
|
+
"""
|
|
233
|
+
暂停任务
|
|
234
|
+
"""
|
|
235
|
+
|
|
236
|
+
kwargs = {}
|
|
237
|
+
kwargs["action"] = "SuspendProbeTask"
|
|
238
|
+
kwargs["params"] = request._serialize()
|
|
239
|
+
kwargs["resp_cls"] = models.SuspendProbeTaskResponse
|
|
240
|
+
kwargs["headers"] = request.headers
|
|
241
|
+
kwargs["opts"] = opts or {}
|
|
242
|
+
|
|
243
|
+
return await self.call_and_deserialize(**kwargs)
|
|
244
|
+
|
|
245
|
+
async def UpdateProbeTaskAttributes(
|
|
246
|
+
self,
|
|
247
|
+
request: models.UpdateProbeTaskAttributesRequest,
|
|
248
|
+
opts: Dict = None,
|
|
249
|
+
) -> models.UpdateProbeTaskAttributesResponse:
|
|
250
|
+
"""
|
|
251
|
+
更新探测任务属性
|
|
252
|
+
"""
|
|
253
|
+
|
|
254
|
+
kwargs = {}
|
|
255
|
+
kwargs["action"] = "UpdateProbeTaskAttributes"
|
|
256
|
+
kwargs["params"] = request._serialize()
|
|
257
|
+
kwargs["resp_cls"] = models.UpdateProbeTaskAttributesResponse
|
|
258
|
+
kwargs["headers"] = request.headers
|
|
259
|
+
kwargs["opts"] = opts or {}
|
|
260
|
+
|
|
261
|
+
return await self.call_and_deserialize(**kwargs)
|
|
262
|
+
|
|
263
|
+
async def UpdateProbeTaskConfigurationList(
|
|
264
|
+
self,
|
|
265
|
+
request: models.UpdateProbeTaskConfigurationListRequest,
|
|
266
|
+
opts: Dict = None,
|
|
267
|
+
) -> models.UpdateProbeTaskConfigurationListResponse:
|
|
268
|
+
"""
|
|
269
|
+
批量更新拨测任务配置
|
|
270
|
+
"""
|
|
271
|
+
|
|
272
|
+
kwargs = {}
|
|
273
|
+
kwargs["action"] = "UpdateProbeTaskConfigurationList"
|
|
274
|
+
kwargs["params"] = request._serialize()
|
|
275
|
+
kwargs["resp_cls"] = models.UpdateProbeTaskConfigurationListResponse
|
|
276
|
+
kwargs["headers"] = request.headers
|
|
277
|
+
kwargs["opts"] = opts or {}
|
|
278
|
+
|
|
279
|
+
return await self.call_and_deserialize(**kwargs)
|
|
@@ -32,6 +32,9 @@ FAILEDOPERATION_ESQUERYERROR = 'FailedOperation.ESQueryError'
|
|
|
32
32
|
# 任务绑定的预付费套餐已过期。
|
|
33
33
|
FAILEDOPERATION_ERRPREPAIDRESOURCEEXPIRE = 'FailedOperation.ErrPrePaidResourceExpire'
|
|
34
34
|
|
|
35
|
+
# 触发指定审批流
|
|
36
|
+
FAILEDOPERATION_NEEDAPPROVAL = 'FailedOperation.NeedApproval'
|
|
37
|
+
|
|
35
38
|
# 无有效节点。
|
|
36
39
|
FAILEDOPERATION_NOVALIDNODES = 'FailedOperation.NoValidNodes'
|
|
37
40
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cat
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1.84
|
|
4
4
|
Summary: Tencent Cloud Cat SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.84
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -44,5 +44,3 @@ or download source code from github and install:
|
|
|
44
44
|
$ cd tencentcloud-sdk-python
|
|
45
45
|
$ python package.py --components common cat
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=_FyGJDd2Wkso0tpQYkwsw5SjU0aOXvJH9ehXpEwvpj8,629
|
|
2
|
+
tencentcloud/cat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/cat/v20180409/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/cat/v20180409/cat_client.py,sha256=3DTHVoajwZExS-auqFvvMXUJ_ugKucEC4XCfRp7ZDAc,14103
|
|
5
|
+
tencentcloud/cat/v20180409/cat_client_async.py,sha256=0jQJr2joLf1gTfIAmYbPyv-UoAvW2hid_FkQbHXFkvk,9783
|
|
6
|
+
tencentcloud/cat/v20180409/errorcodes.py,sha256=7oxdG-t4PJ4WdJVEZNXZVW_K5C4ZQ0KTO4wkUbBX03U,2939
|
|
7
|
+
tencentcloud/cat/v20180409/models.py,sha256=3aWtlMyrG0It879gJjQUmKzPOMfXDsfOsLdFSSWg4Tg,118844
|
|
8
|
+
tencentcloud_sdk_python_cat-3.1.84.dist-info/METADATA,sha256=BG2aCJb4MmX_JUQ7PjrPxuHUULNfupkkiC9BHm5LSBk,1495
|
|
9
|
+
tencentcloud_sdk_python_cat-3.1.84.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_cat-3.1.84.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_cat-3.1.84.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=r84PYsG-hFbeEH3ch-Sw2bJmqWlws-vogRx7ePuiG9c,631
|
|
2
|
-
tencentcloud/cat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/cat/v20180409/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/cat/v20180409/cat_client.py,sha256=3DTHVoajwZExS-auqFvvMXUJ_ugKucEC4XCfRp7ZDAc,14103
|
|
5
|
-
tencentcloud/cat/v20180409/errorcodes.py,sha256=Zn6Uchn1VJTEG4BRtiL3bZgYV3EGqOS-7-T4_4vslbE,2852
|
|
6
|
-
tencentcloud/cat/v20180409/models.py,sha256=3aWtlMyrG0It879gJjQUmKzPOMfXDsfOsLdFSSWg4Tg,118844
|
|
7
|
-
tencentcloud_sdk_python_cat-3.0.1459.dist-info/METADATA,sha256=crLvI37ZZhQf4ZBxGmxAPUBg4gwh06ATJ3sdKx3_QTY,1503
|
|
8
|
-
tencentcloud_sdk_python_cat-3.0.1459.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
-
tencentcloud_sdk_python_cat-3.0.1459.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
-
tencentcloud_sdk_python_cat-3.0.1459.dist-info/RECORD,,
|
|
File without changes
|