tencentcloud-sdk-python-dbbrain 3.1.189__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.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/setup.py +1 -1
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +23 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +18 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20210527/models.py +1227 -82
- {tencentcloud_sdk_python_dbbrain-3.1.189 → 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.189/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/README.rst +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/setup.cfg +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20191016/dbbrain_client_async.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20191016/models.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud/dbbrain/v20210527/errorcodes.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.189 → tencentcloud_sdk_python_dbbrain-3.1.190}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_dbbrain-3.1.189 → 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.189 → 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
|
|
|
@@ -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,
|