tencentcloud-sdk-python-dbbrain 3.1.183__tar.gz → 3.1.190__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_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/setup.py +1 -1
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +69 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +54 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20210527/models.py +4242 -897
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud_sdk_python_dbbrain.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_dbbrain-3.1.190/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_dbbrain-3.1.183/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/README.rst +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/setup.cfg +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20191016/dbbrain_client_async.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20191016/models.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20210527/errorcodes.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-dbbrain
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.190
|
|
4
4
|
Summary: Tencent Cloud Dbbrain 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<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.190
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_dbbrain-3.1.183 → tencentcloud_sdk_python_dbbrain-3.1.190}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-dbbrain',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.190,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Dbbrain SDK for Python',
|
|
@@ -716,6 +716,29 @@ class DbbrainClient(AbstractClient):
|
|
|
716
716
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
717
717
|
|
|
718
718
|
|
|
719
|
+
def DescribeBlockingLogs(self, request):
|
|
720
|
+
r"""查询指定实例在时间窗口内的阻塞日志扁平明细列表,不建阻塞树。每一条Item对应一次blocked_process_report(一条blocker→blocked边)在某一次monitorLoop内被lock monitor捕获的瞬时数据。支持按ReportTime / DurationMs / BlockedWaitTimeMs / BlockingWaitTimeMs升降序排序,并支持根因、数据库名、头SQL / 被阻塞SQL MD5、会话ID、登录名、客户端主机 / 应用、被阻塞锁模式、等待时长范围过滤与分页。适合普通表格展示与二次过滤;若需查看某个采集点的完整链路拓扑,请透传返回的MonitorLoop调用DescribeBlockingLockTree。注意:同一blocker→blocked会话对跨monitorLoop连续采集场景下会产生多条明细行,若需统计发生多少次阻塞请按(BlockingSessionId, BlockedSessionId, BlockedWaitResource)自行去重。时间字段按服务端时区UTC+8解析,建议单次查询跨度≤7天。
|
|
721
|
+
|
|
722
|
+
:param request: Request instance for DescribeBlockingLogs.
|
|
723
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeBlockingLogsRequest`
|
|
724
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeBlockingLogsResponse`
|
|
725
|
+
|
|
726
|
+
"""
|
|
727
|
+
try:
|
|
728
|
+
params = request._serialize()
|
|
729
|
+
headers = request.headers
|
|
730
|
+
body = self.call("DescribeBlockingLogs", params, headers=headers)
|
|
731
|
+
response = json.loads(body)
|
|
732
|
+
model = models.DescribeBlockingLogsResponse()
|
|
733
|
+
model._deserialize(response["Response"])
|
|
734
|
+
return model
|
|
735
|
+
except Exception as e:
|
|
736
|
+
if isinstance(e, TencentCloudSDKException):
|
|
737
|
+
raise
|
|
738
|
+
else:
|
|
739
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
740
|
+
|
|
741
|
+
|
|
719
742
|
def DescribeDBAuditLogTopSqls(self, request):
|
|
720
743
|
r"""按照Sql模板+schema的聚合方式,统计排序指定时间段内的top慢sql。
|
|
721
744
|
|
|
@@ -739,6 +762,29 @@ class DbbrainClient(AbstractClient):
|
|
|
739
762
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
740
763
|
|
|
741
764
|
|
|
765
|
+
def DescribeDBAuditLogs(self, request):
|
|
766
|
+
r"""查询指定实例在时间窗口内的审计日志明细,支持按 SQL 类型、执行耗时、错误码、关键词等多条件过滤。当前仅支持 dcdb、mariadb 产品(cdb、cynosdb 已切至中台)。注意 Filter.MultiSql 与 Filter.ExcludeMultiSql 需以 JSON 字符串形式传递二维数组内容,例如 [["a","b"]] 表示 (a OR b),服务端会自动解析。
|
|
767
|
+
|
|
768
|
+
:param request: Request instance for DescribeDBAuditLogs.
|
|
769
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDBAuditLogsRequest`
|
|
770
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDBAuditLogsResponse`
|
|
771
|
+
|
|
772
|
+
"""
|
|
773
|
+
try:
|
|
774
|
+
params = request._serialize()
|
|
775
|
+
headers = request.headers
|
|
776
|
+
body = self.call("DescribeDBAuditLogs", params, headers=headers)
|
|
777
|
+
response = json.loads(body)
|
|
778
|
+
model = models.DescribeDBAuditLogsResponse()
|
|
779
|
+
model._deserialize(response["Response"])
|
|
780
|
+
return model
|
|
781
|
+
except Exception as e:
|
|
782
|
+
if isinstance(e, TencentCloudSDKException):
|
|
783
|
+
raise
|
|
784
|
+
else:
|
|
785
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
786
|
+
|
|
787
|
+
|
|
742
788
|
def DescribeDBAutonomyAction(self, request):
|
|
743
789
|
r"""自治中心-查询自治事件任务详情。
|
|
744
790
|
|
|
@@ -1015,6 +1061,29 @@ class DbbrainClient(AbstractClient):
|
|
|
1015
1061
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1016
1062
|
|
|
1017
1063
|
|
|
1064
|
+
def DescribeDatabaseObjectV2(self, request):
|
|
1065
|
+
r"""查询指定 SELECT SQL 在实例上的执行计划,常用于慢 SQL 分析、SQL 优化等场景。仅支持 SELECT 类语句
|
|
1066
|
+
|
|
1067
|
+
:param request: Request instance for DescribeDatabaseObjectV2.
|
|
1068
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDatabaseObjectV2Request`
|
|
1069
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDatabaseObjectV2Response`
|
|
1070
|
+
|
|
1071
|
+
"""
|
|
1072
|
+
try:
|
|
1073
|
+
params = request._serialize()
|
|
1074
|
+
headers = request.headers
|
|
1075
|
+
body = self.call("DescribeDatabaseObjectV2", params, headers=headers)
|
|
1076
|
+
response = json.loads(body)
|
|
1077
|
+
model = models.DescribeDatabaseObjectV2Response()
|
|
1078
|
+
model._deserialize(response["Response"])
|
|
1079
|
+
return model
|
|
1080
|
+
except Exception as e:
|
|
1081
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1082
|
+
raise
|
|
1083
|
+
else:
|
|
1084
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1085
|
+
|
|
1086
|
+
|
|
1018
1087
|
def DescribeDeadLockLogs(self, request):
|
|
1019
1088
|
r"""查询实例的死锁事件列表
|
|
1020
1089
|
|
|
@@ -565,6 +565,24 @@ class DbbrainClient(AbstractClient):
|
|
|
565
565
|
|
|
566
566
|
return await self.call_and_deserialize(**kwargs)
|
|
567
567
|
|
|
568
|
+
async def DescribeBlockingLogs(
|
|
569
|
+
self,
|
|
570
|
+
request: models.DescribeBlockingLogsRequest,
|
|
571
|
+
opts: Dict = None,
|
|
572
|
+
) -> models.DescribeBlockingLogsResponse:
|
|
573
|
+
"""
|
|
574
|
+
查询指定实例在时间窗口内的阻塞日志扁平明细列表,不建阻塞树。每一条Item对应一次blocked_process_report(一条blocker→blocked边)在某一次monitorLoop内被lock monitor捕获的瞬时数据。支持按ReportTime / DurationMs / BlockedWaitTimeMs / BlockingWaitTimeMs升降序排序,并支持根因、数据库名、头SQL / 被阻塞SQL MD5、会话ID、登录名、客户端主机 / 应用、被阻塞锁模式、等待时长范围过滤与分页。适合普通表格展示与二次过滤;若需查看某个采集点的完整链路拓扑,请透传返回的MonitorLoop调用DescribeBlockingLockTree。注意:同一blocker→blocked会话对跨monitorLoop连续采集场景下会产生多条明细行,若需统计发生多少次阻塞请按(BlockingSessionId, BlockedSessionId, BlockedWaitResource)自行去重。时间字段按服务端时区UTC+8解析,建议单次查询跨度≤7天。
|
|
575
|
+
"""
|
|
576
|
+
|
|
577
|
+
kwargs = {}
|
|
578
|
+
kwargs["action"] = "DescribeBlockingLogs"
|
|
579
|
+
kwargs["params"] = request._serialize()
|
|
580
|
+
kwargs["resp_cls"] = models.DescribeBlockingLogsResponse
|
|
581
|
+
kwargs["headers"] = request.headers
|
|
582
|
+
kwargs["opts"] = opts or {}
|
|
583
|
+
|
|
584
|
+
return await self.call_and_deserialize(**kwargs)
|
|
585
|
+
|
|
568
586
|
async def DescribeDBAuditLogTopSqls(
|
|
569
587
|
self,
|
|
570
588
|
request: models.DescribeDBAuditLogTopSqlsRequest,
|
|
@@ -583,6 +601,24 @@ class DbbrainClient(AbstractClient):
|
|
|
583
601
|
|
|
584
602
|
return await self.call_and_deserialize(**kwargs)
|
|
585
603
|
|
|
604
|
+
async def DescribeDBAuditLogs(
|
|
605
|
+
self,
|
|
606
|
+
request: models.DescribeDBAuditLogsRequest,
|
|
607
|
+
opts: Dict = None,
|
|
608
|
+
) -> models.DescribeDBAuditLogsResponse:
|
|
609
|
+
"""
|
|
610
|
+
查询指定实例在时间窗口内的审计日志明细,支持按 SQL 类型、执行耗时、错误码、关键词等多条件过滤。当前仅支持 dcdb、mariadb 产品(cdb、cynosdb 已切至中台)。注意 Filter.MultiSql 与 Filter.ExcludeMultiSql 需以 JSON 字符串形式传递二维数组内容,例如 [["a","b"]] 表示 (a OR b),服务端会自动解析。
|
|
611
|
+
"""
|
|
612
|
+
|
|
613
|
+
kwargs = {}
|
|
614
|
+
kwargs["action"] = "DescribeDBAuditLogs"
|
|
615
|
+
kwargs["params"] = request._serialize()
|
|
616
|
+
kwargs["resp_cls"] = models.DescribeDBAuditLogsResponse
|
|
617
|
+
kwargs["headers"] = request.headers
|
|
618
|
+
kwargs["opts"] = opts or {}
|
|
619
|
+
|
|
620
|
+
return await self.call_and_deserialize(**kwargs)
|
|
621
|
+
|
|
586
622
|
async def DescribeDBAutonomyAction(
|
|
587
623
|
self,
|
|
588
624
|
request: models.DescribeDBAutonomyActionRequest,
|
|
@@ -799,6 +835,24 @@ class DbbrainClient(AbstractClient):
|
|
|
799
835
|
|
|
800
836
|
return await self.call_and_deserialize(**kwargs)
|
|
801
837
|
|
|
838
|
+
async def DescribeDatabaseObjectV2(
|
|
839
|
+
self,
|
|
840
|
+
request: models.DescribeDatabaseObjectV2Request,
|
|
841
|
+
opts: Dict = None,
|
|
842
|
+
) -> models.DescribeDatabaseObjectV2Response:
|
|
843
|
+
"""
|
|
844
|
+
查询指定 SELECT SQL 在实例上的执行计划,常用于慢 SQL 分析、SQL 优化等场景。仅支持 SELECT 类语句
|
|
845
|
+
"""
|
|
846
|
+
|
|
847
|
+
kwargs = {}
|
|
848
|
+
kwargs["action"] = "DescribeDatabaseObjectV2"
|
|
849
|
+
kwargs["params"] = request._serialize()
|
|
850
|
+
kwargs["resp_cls"] = models.DescribeDatabaseObjectV2Response
|
|
851
|
+
kwargs["headers"] = request.headers
|
|
852
|
+
kwargs["opts"] = opts or {}
|
|
853
|
+
|
|
854
|
+
return await self.call_and_deserialize(**kwargs)
|
|
855
|
+
|
|
802
856
|
async def DescribeDeadLockLogs(
|
|
803
857
|
self,
|
|
804
858
|
request: models.DescribeDeadLockLogsRequest,
|