tencentcloud-sdk-python-cls 3.0.984__py2.py3-none-any.whl → 3.0.985__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/cls/v20201016/cls_client.py +46 -0
- tencentcloud/cls/v20201016/models.py +236 -0
- {tencentcloud_sdk_python_cls-3.0.984.dist-info → tencentcloud_sdk_python_cls-3.0.985.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_cls-3.0.985.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_cls-3.0.984.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_cls-3.0.984.dist-info → tencentcloud_sdk_python_cls-3.0.985.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_cls-3.0.984.dist-info → tencentcloud_sdk_python_cls-3.0.985.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -1866,6 +1866,52 @@ class ClsClient(AbstractClient):
|
|
|
1866
1866
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1867
1867
|
|
|
1868
1868
|
|
|
1869
|
+
def QueryMetric(self, request):
|
|
1870
|
+
"""查询指定时刻指标的最新值
|
|
1871
|
+
|
|
1872
|
+
:param request: Request instance for QueryMetric.
|
|
1873
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.QueryMetricRequest`
|
|
1874
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.QueryMetricResponse`
|
|
1875
|
+
|
|
1876
|
+
"""
|
|
1877
|
+
try:
|
|
1878
|
+
params = request._serialize()
|
|
1879
|
+
headers = request.headers
|
|
1880
|
+
body = self.call("QueryMetric", params, headers=headers)
|
|
1881
|
+
response = json.loads(body)
|
|
1882
|
+
model = models.QueryMetricResponse()
|
|
1883
|
+
model._deserialize(response["Response"])
|
|
1884
|
+
return model
|
|
1885
|
+
except Exception as e:
|
|
1886
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1887
|
+
raise
|
|
1888
|
+
else:
|
|
1889
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
def QueryRangeMetric(self, request):
|
|
1893
|
+
"""查询指定时间范围内指标的变化趋势
|
|
1894
|
+
|
|
1895
|
+
:param request: Request instance for QueryRangeMetric.
|
|
1896
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.QueryRangeMetricRequest`
|
|
1897
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.QueryRangeMetricResponse`
|
|
1898
|
+
|
|
1899
|
+
"""
|
|
1900
|
+
try:
|
|
1901
|
+
params = request._serialize()
|
|
1902
|
+
headers = request.headers
|
|
1903
|
+
body = self.call("QueryRangeMetric", params, headers=headers)
|
|
1904
|
+
response = json.loads(body)
|
|
1905
|
+
model = models.QueryRangeMetricResponse()
|
|
1906
|
+
model._deserialize(response["Response"])
|
|
1907
|
+
return model
|
|
1908
|
+
except Exception as e:
|
|
1909
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1910
|
+
raise
|
|
1911
|
+
else:
|
|
1912
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1913
|
+
|
|
1914
|
+
|
|
1869
1915
|
def RetryShipperTask(self, request):
|
|
1870
1916
|
"""重试失败的投递任务
|
|
1871
1917
|
|
|
@@ -16249,6 +16249,242 @@ class PreviewLogStatistic(AbstractModel):
|
|
|
16249
16249
|
|
|
16250
16250
|
|
|
16251
16251
|
|
|
16252
|
+
class QueryMetricRequest(AbstractModel):
|
|
16253
|
+
"""QueryMetric请求参数结构体
|
|
16254
|
+
|
|
16255
|
+
"""
|
|
16256
|
+
|
|
16257
|
+
def __init__(self):
|
|
16258
|
+
r"""
|
|
16259
|
+
:param _Query: 查询语句,使用PromQL语法
|
|
16260
|
+
:type Query: str
|
|
16261
|
+
:param _TopicId: 指标主题ID
|
|
16262
|
+
:type TopicId: str
|
|
16263
|
+
:param _Time: 查询时间,秒级Unix时间戳
|
|
16264
|
+
:type Time: int
|
|
16265
|
+
"""
|
|
16266
|
+
self._Query = None
|
|
16267
|
+
self._TopicId = None
|
|
16268
|
+
self._Time = None
|
|
16269
|
+
|
|
16270
|
+
@property
|
|
16271
|
+
def Query(self):
|
|
16272
|
+
return self._Query
|
|
16273
|
+
|
|
16274
|
+
@Query.setter
|
|
16275
|
+
def Query(self, Query):
|
|
16276
|
+
self._Query = Query
|
|
16277
|
+
|
|
16278
|
+
@property
|
|
16279
|
+
def TopicId(self):
|
|
16280
|
+
return self._TopicId
|
|
16281
|
+
|
|
16282
|
+
@TopicId.setter
|
|
16283
|
+
def TopicId(self, TopicId):
|
|
16284
|
+
self._TopicId = TopicId
|
|
16285
|
+
|
|
16286
|
+
@property
|
|
16287
|
+
def Time(self):
|
|
16288
|
+
return self._Time
|
|
16289
|
+
|
|
16290
|
+
@Time.setter
|
|
16291
|
+
def Time(self, Time):
|
|
16292
|
+
self._Time = Time
|
|
16293
|
+
|
|
16294
|
+
|
|
16295
|
+
def _deserialize(self, params):
|
|
16296
|
+
self._Query = params.get("Query")
|
|
16297
|
+
self._TopicId = params.get("TopicId")
|
|
16298
|
+
self._Time = params.get("Time")
|
|
16299
|
+
memeber_set = set(params.keys())
|
|
16300
|
+
for name, value in vars(self).items():
|
|
16301
|
+
property_name = name[1:]
|
|
16302
|
+
if property_name in memeber_set:
|
|
16303
|
+
memeber_set.remove(property_name)
|
|
16304
|
+
if len(memeber_set) > 0:
|
|
16305
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16306
|
+
|
|
16307
|
+
|
|
16308
|
+
|
|
16309
|
+
class QueryMetricResponse(AbstractModel):
|
|
16310
|
+
"""QueryMetric返回参数结构体
|
|
16311
|
+
|
|
16312
|
+
"""
|
|
16313
|
+
|
|
16314
|
+
def __init__(self):
|
|
16315
|
+
r"""
|
|
16316
|
+
:param _ResultType: 指标查询结果类型
|
|
16317
|
+
:type ResultType: str
|
|
16318
|
+
:param _Result: 指标查询结果
|
|
16319
|
+
:type Result: str
|
|
16320
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
16321
|
+
:type RequestId: str
|
|
16322
|
+
"""
|
|
16323
|
+
self._ResultType = None
|
|
16324
|
+
self._Result = None
|
|
16325
|
+
self._RequestId = None
|
|
16326
|
+
|
|
16327
|
+
@property
|
|
16328
|
+
def ResultType(self):
|
|
16329
|
+
return self._ResultType
|
|
16330
|
+
|
|
16331
|
+
@ResultType.setter
|
|
16332
|
+
def ResultType(self, ResultType):
|
|
16333
|
+
self._ResultType = ResultType
|
|
16334
|
+
|
|
16335
|
+
@property
|
|
16336
|
+
def Result(self):
|
|
16337
|
+
return self._Result
|
|
16338
|
+
|
|
16339
|
+
@Result.setter
|
|
16340
|
+
def Result(self, Result):
|
|
16341
|
+
self._Result = Result
|
|
16342
|
+
|
|
16343
|
+
@property
|
|
16344
|
+
def RequestId(self):
|
|
16345
|
+
return self._RequestId
|
|
16346
|
+
|
|
16347
|
+
@RequestId.setter
|
|
16348
|
+
def RequestId(self, RequestId):
|
|
16349
|
+
self._RequestId = RequestId
|
|
16350
|
+
|
|
16351
|
+
|
|
16352
|
+
def _deserialize(self, params):
|
|
16353
|
+
self._ResultType = params.get("ResultType")
|
|
16354
|
+
self._Result = params.get("Result")
|
|
16355
|
+
self._RequestId = params.get("RequestId")
|
|
16356
|
+
|
|
16357
|
+
|
|
16358
|
+
class QueryRangeMetricRequest(AbstractModel):
|
|
16359
|
+
"""QueryRangeMetric请求参数结构体
|
|
16360
|
+
|
|
16361
|
+
"""
|
|
16362
|
+
|
|
16363
|
+
def __init__(self):
|
|
16364
|
+
r"""
|
|
16365
|
+
:param _TopicId: 指标主题ID
|
|
16366
|
+
:type TopicId: str
|
|
16367
|
+
:param _Query: 查询语句,使用PromQL语法
|
|
16368
|
+
:type Query: str
|
|
16369
|
+
:param _Start: 查询起始时间,秒级Unix时间戳
|
|
16370
|
+
:type Start: int
|
|
16371
|
+
:param _End: 查询结束时间,秒级Unix时间戳
|
|
16372
|
+
:type End: int
|
|
16373
|
+
:param _Step: 查询时间间隔,单位秒
|
|
16374
|
+
:type Step: int
|
|
16375
|
+
"""
|
|
16376
|
+
self._TopicId = None
|
|
16377
|
+
self._Query = None
|
|
16378
|
+
self._Start = None
|
|
16379
|
+
self._End = None
|
|
16380
|
+
self._Step = None
|
|
16381
|
+
|
|
16382
|
+
@property
|
|
16383
|
+
def TopicId(self):
|
|
16384
|
+
return self._TopicId
|
|
16385
|
+
|
|
16386
|
+
@TopicId.setter
|
|
16387
|
+
def TopicId(self, TopicId):
|
|
16388
|
+
self._TopicId = TopicId
|
|
16389
|
+
|
|
16390
|
+
@property
|
|
16391
|
+
def Query(self):
|
|
16392
|
+
return self._Query
|
|
16393
|
+
|
|
16394
|
+
@Query.setter
|
|
16395
|
+
def Query(self, Query):
|
|
16396
|
+
self._Query = Query
|
|
16397
|
+
|
|
16398
|
+
@property
|
|
16399
|
+
def Start(self):
|
|
16400
|
+
return self._Start
|
|
16401
|
+
|
|
16402
|
+
@Start.setter
|
|
16403
|
+
def Start(self, Start):
|
|
16404
|
+
self._Start = Start
|
|
16405
|
+
|
|
16406
|
+
@property
|
|
16407
|
+
def End(self):
|
|
16408
|
+
return self._End
|
|
16409
|
+
|
|
16410
|
+
@End.setter
|
|
16411
|
+
def End(self, End):
|
|
16412
|
+
self._End = End
|
|
16413
|
+
|
|
16414
|
+
@property
|
|
16415
|
+
def Step(self):
|
|
16416
|
+
return self._Step
|
|
16417
|
+
|
|
16418
|
+
@Step.setter
|
|
16419
|
+
def Step(self, Step):
|
|
16420
|
+
self._Step = Step
|
|
16421
|
+
|
|
16422
|
+
|
|
16423
|
+
def _deserialize(self, params):
|
|
16424
|
+
self._TopicId = params.get("TopicId")
|
|
16425
|
+
self._Query = params.get("Query")
|
|
16426
|
+
self._Start = params.get("Start")
|
|
16427
|
+
self._End = params.get("End")
|
|
16428
|
+
self._Step = params.get("Step")
|
|
16429
|
+
memeber_set = set(params.keys())
|
|
16430
|
+
for name, value in vars(self).items():
|
|
16431
|
+
property_name = name[1:]
|
|
16432
|
+
if property_name in memeber_set:
|
|
16433
|
+
memeber_set.remove(property_name)
|
|
16434
|
+
if len(memeber_set) > 0:
|
|
16435
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16436
|
+
|
|
16437
|
+
|
|
16438
|
+
|
|
16439
|
+
class QueryRangeMetricResponse(AbstractModel):
|
|
16440
|
+
"""QueryRangeMetric返回参数结构体
|
|
16441
|
+
|
|
16442
|
+
"""
|
|
16443
|
+
|
|
16444
|
+
def __init__(self):
|
|
16445
|
+
r"""
|
|
16446
|
+
:param _ResultType: 指标查询结果类型
|
|
16447
|
+
:type ResultType: str
|
|
16448
|
+
:param _Result: 指标查询结果
|
|
16449
|
+
:type Result: str
|
|
16450
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
16451
|
+
:type RequestId: str
|
|
16452
|
+
"""
|
|
16453
|
+
self._ResultType = None
|
|
16454
|
+
self._Result = None
|
|
16455
|
+
self._RequestId = None
|
|
16456
|
+
|
|
16457
|
+
@property
|
|
16458
|
+
def ResultType(self):
|
|
16459
|
+
return self._ResultType
|
|
16460
|
+
|
|
16461
|
+
@ResultType.setter
|
|
16462
|
+
def ResultType(self, ResultType):
|
|
16463
|
+
self._ResultType = ResultType
|
|
16464
|
+
|
|
16465
|
+
@property
|
|
16466
|
+
def Result(self):
|
|
16467
|
+
return self._Result
|
|
16468
|
+
|
|
16469
|
+
@Result.setter
|
|
16470
|
+
def Result(self, Result):
|
|
16471
|
+
self._Result = Result
|
|
16472
|
+
|
|
16473
|
+
@property
|
|
16474
|
+
def RequestId(self):
|
|
16475
|
+
return self._RequestId
|
|
16476
|
+
|
|
16477
|
+
@RequestId.setter
|
|
16478
|
+
def RequestId(self, RequestId):
|
|
16479
|
+
self._RequestId = RequestId
|
|
16480
|
+
|
|
16481
|
+
|
|
16482
|
+
def _deserialize(self, params):
|
|
16483
|
+
self._ResultType = params.get("ResultType")
|
|
16484
|
+
self._Result = params.get("Result")
|
|
16485
|
+
self._RequestId = params.get("RequestId")
|
|
16486
|
+
|
|
16487
|
+
|
|
16252
16488
|
class RetryShipperTaskRequest(AbstractModel):
|
|
16253
16489
|
"""RetryShipperTask请求参数结构体
|
|
16254
16490
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cls
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.985
|
|
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
|
|
@@ -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 (==3.0.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (==3.0.985)
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=joz3y5gFUH641k8BuLkdACngBu1BbF7ZWaCgIBKMLCg,630
|
|
2
|
+
tencentcloud/cls/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/cls/v20201016/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/cls/v20201016/cls_client.py,sha256=lxvtqykFg8RM4Fj8dh9cQkQgGGx9gH7TaxweL1JRgFM,87356
|
|
5
|
+
tencentcloud/cls/v20201016/errorcodes.py,sha256=ADBJ7QZPtpl7tsJ9t6lgKmxiV5kWmAou4UGvWC7Q2fc,9633
|
|
6
|
+
tencentcloud/cls/v20201016/models.py,sha256=bI74yk4KLWoeQL2fliMWxdjFa4zfUwL_CZB-wUPq7uk,543023
|
|
7
|
+
tencentcloud_sdk_python_cls-3.0.985.dist-info/METADATA,sha256=VKZm3bXkiEEkqgyIU6XHpQItWU4qfzTtRbDTYh0LqCM,1490
|
|
8
|
+
tencentcloud_sdk_python_cls-3.0.985.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
+
tencentcloud_sdk_python_cls-3.0.985.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
+
tencentcloud_sdk_python_cls-3.0.985.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=CeGQVxYNlqiJipV7eoGOE9Yp4BeBes3giN5pBpaJDe8,630
|
|
2
|
-
tencentcloud/cls/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/cls/v20201016/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/cls/v20201016/cls_client.py,sha256=U4U7kU0CKuFTHK8MLFjj6Au99cHKY0M4x8B_klfaQeo,85612
|
|
5
|
-
tencentcloud/cls/v20201016/errorcodes.py,sha256=ADBJ7QZPtpl7tsJ9t6lgKmxiV5kWmAou4UGvWC7Q2fc,9633
|
|
6
|
-
tencentcloud/cls/v20201016/models.py,sha256=OJFnE38JNS-CM7MPkuqv0H4lyDBfRMSx1RQWKzrzLFA,537257
|
|
7
|
-
tencentcloud_sdk_python_cls-3.0.984.dist-info/METADATA,sha256=gs2yaNNwcc2kjnswcDwZ1LiVgOwH9ci3FtK2zc2UwOc,1490
|
|
8
|
-
tencentcloud_sdk_python_cls-3.0.984.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
-
tencentcloud_sdk_python_cls-3.0.984.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
-
tencentcloud_sdk_python_cls-3.0.984.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|