tencentcloud-sdk-python-intl-en 3.0.1289__py2.py3-none-any.whl → 3.0.1292__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/ccc/v20200210/ccc_client.py +23 -0
- tencentcloud/ccc/v20200210/models.py +184 -0
- tencentcloud/clb/v20180317/clb_client.py +4 -4
- tencentcloud/clb/v20180317/errorcodes.py +9 -0
- tencentcloud/clb/v20180317/models.py +27 -2
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +46 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
- tencentcloud/cynosdb/v20190107/models.py +1286 -75
- tencentcloud/dlc/v20210125/dlc_client.py +69 -0
- tencentcloud/dlc/v20210125/models.py +504 -0
- tencentcloud/mdl/v20200326/models.py +191 -0
- tencentcloud/mongodb/v20190725/errorcodes.py +15 -0
- tencentcloud/mongodb/v20190725/models.py +1276 -463
- tencentcloud/mongodb/v20190725/mongodb_client.py +75 -6
- tencentcloud/monitor/v20180724/models.py +1351 -124
- tencentcloud/monitor/v20180724/monitor_client.py +118 -0
- tencentcloud/mps/v20190612/models.py +366 -62
- tencentcloud/quota/v20241204/models.py +17 -2
- tencentcloud/redis/v20180412/models.py +410 -168
- tencentcloud/redis/v20180412/redis_client.py +4 -4
- tencentcloud/wedata/v20250806/__init__.py +0 -0
- tencentcloud/wedata/v20250806/errorcodes.py +57 -0
- tencentcloud/wedata/v20250806/models.py +26375 -0
- tencentcloud/wedata/v20250806/wedata_client.py +1797 -0
- {tencentcloud_sdk_python_intl_en-3.0.1289.dist-info → tencentcloud_sdk_python_intl_en-3.0.1292.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1289.dist-info → tencentcloud_sdk_python_intl_en-3.0.1292.dist-info}/RECORD +29 -25
- {tencentcloud_sdk_python_intl_en-3.0.1289.dist-info → tencentcloud_sdk_python_intl_en-3.0.1292.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1289.dist-info → tencentcloud_sdk_python_intl_en-3.0.1292.dist-info}/top_level.txt +0 -0
|
@@ -327,6 +327,32 @@ class MonitorClient(AbstractClient):
|
|
|
327
327
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
328
328
|
|
|
329
329
|
|
|
330
|
+
def CreatePrometheusAlertGroup(self, request):
|
|
331
|
+
r"""This API is used to create a Prometheus alert rule groups.
|
|
332
|
+
|
|
333
|
+
This API is used to group alert rules, which can include multiple alert rules. Alert messages within the group are sent via the alert group's notification template.
|
|
334
|
+
This API is used to enable individually creating enabled/disabled alert rules under an alert group.
|
|
335
|
+
|
|
336
|
+
:param request: Request instance for CreatePrometheusAlertGroup.
|
|
337
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.CreatePrometheusAlertGroupRequest`
|
|
338
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.CreatePrometheusAlertGroupResponse`
|
|
339
|
+
|
|
340
|
+
"""
|
|
341
|
+
try:
|
|
342
|
+
params = request._serialize()
|
|
343
|
+
headers = request.headers
|
|
344
|
+
body = self.call("CreatePrometheusAlertGroup", params, headers=headers)
|
|
345
|
+
response = json.loads(body)
|
|
346
|
+
model = models.CreatePrometheusAlertGroupResponse()
|
|
347
|
+
model._deserialize(response["Response"])
|
|
348
|
+
return model
|
|
349
|
+
except Exception as e:
|
|
350
|
+
if isinstance(e, TencentCloudSDKException):
|
|
351
|
+
raise
|
|
352
|
+
else:
|
|
353
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
354
|
+
|
|
355
|
+
|
|
330
356
|
def CreatePrometheusAlertPolicy(self, request):
|
|
331
357
|
r"""This API is used to create an alerting rule.
|
|
332
358
|
|
|
@@ -766,6 +792,29 @@ class MonitorClient(AbstractClient):
|
|
|
766
792
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
767
793
|
|
|
768
794
|
|
|
795
|
+
def DeletePrometheusAlertGroups(self, request):
|
|
796
|
+
r"""This API is used to delete Prometheus alert rule groups.
|
|
797
|
+
|
|
798
|
+
:param request: Request instance for DeletePrometheusAlertGroups.
|
|
799
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.DeletePrometheusAlertGroupsRequest`
|
|
800
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.DeletePrometheusAlertGroupsResponse`
|
|
801
|
+
|
|
802
|
+
"""
|
|
803
|
+
try:
|
|
804
|
+
params = request._serialize()
|
|
805
|
+
headers = request.headers
|
|
806
|
+
body = self.call("DeletePrometheusAlertGroups", params, headers=headers)
|
|
807
|
+
response = json.loads(body)
|
|
808
|
+
model = models.DeletePrometheusAlertGroupsResponse()
|
|
809
|
+
model._deserialize(response["Response"])
|
|
810
|
+
return model
|
|
811
|
+
except Exception as e:
|
|
812
|
+
if isinstance(e, TencentCloudSDKException):
|
|
813
|
+
raise
|
|
814
|
+
else:
|
|
815
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
816
|
+
|
|
817
|
+
|
|
769
818
|
def DeletePrometheusAlertPolicy(self, request):
|
|
770
819
|
r"""This API is used to delete a TMP 2.0 instance alerting rule.
|
|
771
820
|
|
|
@@ -1734,6 +1783,29 @@ class MonitorClient(AbstractClient):
|
|
|
1734
1783
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1735
1784
|
|
|
1736
1785
|
|
|
1786
|
+
def DescribePrometheusAlertGroups(self, request):
|
|
1787
|
+
r"""This API is used to query alarm groups under a given prometheus.
|
|
1788
|
+
|
|
1789
|
+
:param request: Request instance for DescribePrometheusAlertGroups.
|
|
1790
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.DescribePrometheusAlertGroupsRequest`
|
|
1791
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.DescribePrometheusAlertGroupsResponse`
|
|
1792
|
+
|
|
1793
|
+
"""
|
|
1794
|
+
try:
|
|
1795
|
+
params = request._serialize()
|
|
1796
|
+
headers = request.headers
|
|
1797
|
+
body = self.call("DescribePrometheusAlertGroups", params, headers=headers)
|
|
1798
|
+
response = json.loads(body)
|
|
1799
|
+
model = models.DescribePrometheusAlertGroupsResponse()
|
|
1800
|
+
model._deserialize(response["Response"])
|
|
1801
|
+
return model
|
|
1802
|
+
except Exception as e:
|
|
1803
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1804
|
+
raise
|
|
1805
|
+
else:
|
|
1806
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1807
|
+
|
|
1808
|
+
|
|
1737
1809
|
def DescribePrometheusAlertPolicy(self, request):
|
|
1738
1810
|
r"""This API is used to get the list of v2.0 instance alerting rules.
|
|
1739
1811
|
|
|
@@ -3241,6 +3313,52 @@ class MonitorClient(AbstractClient):
|
|
|
3241
3313
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3242
3314
|
|
|
3243
3315
|
|
|
3316
|
+
def UpdatePrometheusAlertGroup(self, request):
|
|
3317
|
+
r"""This API is used to update Prometheus alert rule groups.
|
|
3318
|
+
|
|
3319
|
+
:param request: Request instance for UpdatePrometheusAlertGroup.
|
|
3320
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupRequest`
|
|
3321
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupResponse`
|
|
3322
|
+
|
|
3323
|
+
"""
|
|
3324
|
+
try:
|
|
3325
|
+
params = request._serialize()
|
|
3326
|
+
headers = request.headers
|
|
3327
|
+
body = self.call("UpdatePrometheusAlertGroup", params, headers=headers)
|
|
3328
|
+
response = json.loads(body)
|
|
3329
|
+
model = models.UpdatePrometheusAlertGroupResponse()
|
|
3330
|
+
model._deserialize(response["Response"])
|
|
3331
|
+
return model
|
|
3332
|
+
except Exception as e:
|
|
3333
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3334
|
+
raise
|
|
3335
|
+
else:
|
|
3336
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3337
|
+
|
|
3338
|
+
|
|
3339
|
+
def UpdatePrometheusAlertGroupState(self, request):
|
|
3340
|
+
r"""This API is used to batch update the status of alarm groups and set all rules grouped in them to the target status.
|
|
3341
|
+
|
|
3342
|
+
:param request: Request instance for UpdatePrometheusAlertGroupState.
|
|
3343
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupStateRequest`
|
|
3344
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupStateResponse`
|
|
3345
|
+
|
|
3346
|
+
"""
|
|
3347
|
+
try:
|
|
3348
|
+
params = request._serialize()
|
|
3349
|
+
headers = request.headers
|
|
3350
|
+
body = self.call("UpdatePrometheusAlertGroupState", params, headers=headers)
|
|
3351
|
+
response = json.loads(body)
|
|
3352
|
+
model = models.UpdatePrometheusAlertGroupStateResponse()
|
|
3353
|
+
model._deserialize(response["Response"])
|
|
3354
|
+
return model
|
|
3355
|
+
except Exception as e:
|
|
3356
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3357
|
+
raise
|
|
3358
|
+
else:
|
|
3359
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3360
|
+
|
|
3361
|
+
|
|
3244
3362
|
def UpdatePrometheusScrapeJob(self, request):
|
|
3245
3363
|
r"""This API is used to update a Prometheus scrape task.
|
|
3246
3364
|
|