tencentcloud-sdk-python-dbbrain 3.1.190__tar.gz → 3.1.196__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.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/setup.py +1 -1
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +92 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +72 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/v20210527/models.py +2257 -156
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud_sdk_python_dbbrain.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_dbbrain-3.1.196/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_dbbrain-3.1.190/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/README.rst +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/setup.cfg +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/v20191016/dbbrain_client_async.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/v20191016/models.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud/dbbrain/v20210527/errorcodes.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/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.196
|
|
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.196
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_dbbrain-3.1.190 → tencentcloud_sdk_python_dbbrain-3.1.196}/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.196,<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 DescribeBlockingLockTree(self, request):
|
|
720
|
+
r"""根据指定快照 token 查询该快照时刻的完整阻塞树(多层嵌套,根节点为头 blocker,支持多叉/多层展开)。支持两种定位方式,任选其一:(1) 优先 MonitorLoop(精确,lock monitor 一次扫描快照的唯一标识),可从 DescribeBlockingTimeRange / DescribeBlockingLogs / DescribeBlockingTrend 返回获取;(2) 兑底 BlockingTime(近似,任意阻塞时间点),后端会在该时间点±1分钟范围内找到最接近的 MonitorLoop 再下钻其阻塞树。当 MonitorLoop 不为空时优先采用;为空时回退使用 BlockingTime;两者都为空则返回参数错误。一个 MonitorLoop 可包含多棵独立阻塞树(若该快照内存在多组互不相干的阻塞链路)。对标 dbaas-pfs 的 DescribeLockTree。
|
|
721
|
+
|
|
722
|
+
:param request: Request instance for DescribeBlockingLockTree.
|
|
723
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeBlockingLockTreeRequest`
|
|
724
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeBlockingLockTreeResponse`
|
|
725
|
+
|
|
726
|
+
"""
|
|
727
|
+
try:
|
|
728
|
+
params = request._serialize()
|
|
729
|
+
headers = request.headers
|
|
730
|
+
body = self.call("DescribeBlockingLockTree", params, headers=headers)
|
|
731
|
+
response = json.loads(body)
|
|
732
|
+
model = models.DescribeBlockingLockTreeResponse()
|
|
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 DescribeBlockingLogs(self, request):
|
|
720
743
|
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
744
|
|
|
@@ -739,6 +762,29 @@ class DbbrainClient(AbstractClient):
|
|
|
739
762
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
740
763
|
|
|
741
764
|
|
|
765
|
+
def DescribeBlockingTrend(self, request):
|
|
766
|
+
r"""查询指定实例在时间窗口内按时间粒度聚合的阻塞计数时序,用于前端绘制阻塞趋势图。返回每个粒度 bucket 的 (StartTime, EndTime, LockCount, MonitorLoopCount),实际聚合区间为前闭后开 [StartTime, EndTime)。为稠密时序:时间窗口内每个粒度 bucket 都返回一个点,无数据的 bucket 补零(LockCount=0, MonitorLoopCount=0),前端可直接绘制连续趋势图。粒度自动按时间跨度 deltaMs = EndTime - StartTime 决定(右开上界判定):deltaMs≤5min→SECONDS(1s),deltaMs≤1h→MINUTES(1min),deltaMs≤3h→FIVE_MINUTES(5min),deltaMs≤6h→TEN_MINUTES(10min),deltaMs≤12h→FIFTEEN_MINUTES(15min),deltaMs≤24h→THIRTY_MINUTES(30min),deltaMs>24h→HOUR(1h)。底层走 Druid timeseries 原生聚合,服务端完成聚合,适合高频前端刷新。
|
|
767
|
+
|
|
768
|
+
:param request: Request instance for DescribeBlockingTrend.
|
|
769
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeBlockingTrendRequest`
|
|
770
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeBlockingTrendResponse`
|
|
771
|
+
|
|
772
|
+
"""
|
|
773
|
+
try:
|
|
774
|
+
params = request._serialize()
|
|
775
|
+
headers = request.headers
|
|
776
|
+
body = self.call("DescribeBlockingTrend", params, headers=headers)
|
|
777
|
+
response = json.loads(body)
|
|
778
|
+
model = models.DescribeBlockingTrendResponse()
|
|
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 DescribeDBAuditLogTopSqls(self, request):
|
|
743
789
|
r"""按照Sql模板+schema的聚合方式,统计排序指定时间段内的top慢sql。
|
|
744
790
|
|
|
@@ -1843,6 +1889,29 @@ class DbbrainClient(AbstractClient):
|
|
|
1843
1889
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1844
1890
|
|
|
1845
1891
|
|
|
1892
|
+
def DescribeTableSpaceDataV2(self, request):
|
|
1893
|
+
r"""表空间数据查询(融合接口,多产品统一入口)。按入参 TableSchema + TableName(PG 系额外需 TableCatalog)定位单张表/集合,返回该表的空间使用明细。支持产品:mysql(云数据库 MySQL)、cynosdb(TDSQL-C MySQL 版)、mongodb(云数据库 MongoDB)、postgres(云数据库 PostgreSQL)、sqlserver(SQL Server)、dcdb(TDSQL MySQL 版)、tdsql(TDSQL)、mariadb(云数据库 MariaDB)。返回值按产品隔离:MySQL 系列返回 MysqlTableSpaceData;PostgreSQL 返回 PostgresTableSpaceData;MongoDB 返回 MongodbTableSpaceData(含集合明细列表 SpaceSchemas 和外层 Timestamp);SQL Server 返回 SqlServerTableSpaceData。注意:只读实例(CDB RO / RO 组 / CynosDB RO / TDSQL-C 集群 RO)不支持空间分析,调用将直接报错。
|
|
1894
|
+
|
|
1895
|
+
:param request: Request instance for DescribeTableSpaceDataV2.
|
|
1896
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeTableSpaceDataV2Request`
|
|
1897
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeTableSpaceDataV2Response`
|
|
1898
|
+
|
|
1899
|
+
"""
|
|
1900
|
+
try:
|
|
1901
|
+
params = request._serialize()
|
|
1902
|
+
headers = request.headers
|
|
1903
|
+
body = self.call("DescribeTableSpaceDataV2", params, headers=headers)
|
|
1904
|
+
response = json.loads(body)
|
|
1905
|
+
model = models.DescribeTableSpaceDataV2Response()
|
|
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
|
+
|
|
1846
1915
|
def DescribeTopSpaceSchemaTimeSeries(self, request):
|
|
1847
1916
|
r"""获取实例占用空间最大的前几个库在指定时间段内的每日由DBbrain定时采集的空间数据,默认返回按大小排序。
|
|
1848
1917
|
|
|
@@ -1889,6 +1958,29 @@ class DbbrainClient(AbstractClient):
|
|
|
1889
1958
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1890
1959
|
|
|
1891
1960
|
|
|
1961
|
+
def DescribeTopSpaceSchemasV2(self, request):
|
|
1962
|
+
r"""库级空间 Top 对象查询(融合接口,多产品统一入口),按 SortBy 指定的排序字段返回实例内空间占用 Top N 的数据库。支持产品:mysql(云数据库 MySQL)、cynosdb(TDSQL-C MySQL 版)、mongodb(云数据库 MongoDB)、postgres(云数据库 PostgreSQL)、dcdb(TDSQL MySQL 版)、tdsql(TDSQL)、mariadb(云数据库 MariaDB)。返回值根据产品类型返回对应字段:MySQL 系列返回 MysqlObjects(库级返回项中不包含 TableName/Engine 字段),PostgreSQL 返回 PostgresObjects(PG 的 relation/bloat 字段与 MySQL 语义不同),MongoDB 返回 MongodbObjects。
|
|
1963
|
+
|
|
1964
|
+
:param request: Request instance for DescribeTopSpaceSchemasV2.
|
|
1965
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeTopSpaceSchemasV2Request`
|
|
1966
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeTopSpaceSchemasV2Response`
|
|
1967
|
+
|
|
1968
|
+
"""
|
|
1969
|
+
try:
|
|
1970
|
+
params = request._serialize()
|
|
1971
|
+
headers = request.headers
|
|
1972
|
+
body = self.call("DescribeTopSpaceSchemasV2", params, headers=headers)
|
|
1973
|
+
response = json.loads(body)
|
|
1974
|
+
model = models.DescribeTopSpaceSchemasV2Response()
|
|
1975
|
+
model._deserialize(response["Response"])
|
|
1976
|
+
return model
|
|
1977
|
+
except Exception as e:
|
|
1978
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1979
|
+
raise
|
|
1980
|
+
else:
|
|
1981
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1982
|
+
|
|
1983
|
+
|
|
1892
1984
|
def DescribeTopSpaceTableTimeSeries(self, request):
|
|
1893
1985
|
r"""获取实例占用空间最大的前几张表在指定时间段内的每日由DBbrain定时采集的空间数据,默认返回按大小排序。
|
|
1894
1986
|
|
|
@@ -565,6 +565,24 @@ class DbbrainClient(AbstractClient):
|
|
|
565
565
|
|
|
566
566
|
return await self.call_and_deserialize(**kwargs)
|
|
567
567
|
|
|
568
|
+
async def DescribeBlockingLockTree(
|
|
569
|
+
self,
|
|
570
|
+
request: models.DescribeBlockingLockTreeRequest,
|
|
571
|
+
opts: Dict = None,
|
|
572
|
+
) -> models.DescribeBlockingLockTreeResponse:
|
|
573
|
+
"""
|
|
574
|
+
根据指定快照 token 查询该快照时刻的完整阻塞树(多层嵌套,根节点为头 blocker,支持多叉/多层展开)。支持两种定位方式,任选其一:(1) 优先 MonitorLoop(精确,lock monitor 一次扫描快照的唯一标识),可从 DescribeBlockingTimeRange / DescribeBlockingLogs / DescribeBlockingTrend 返回获取;(2) 兑底 BlockingTime(近似,任意阻塞时间点),后端会在该时间点±1分钟范围内找到最接近的 MonitorLoop 再下钻其阻塞树。当 MonitorLoop 不为空时优先采用;为空时回退使用 BlockingTime;两者都为空则返回参数错误。一个 MonitorLoop 可包含多棵独立阻塞树(若该快照内存在多组互不相干的阻塞链路)。对标 dbaas-pfs 的 DescribeLockTree。
|
|
575
|
+
"""
|
|
576
|
+
|
|
577
|
+
kwargs = {}
|
|
578
|
+
kwargs["action"] = "DescribeBlockingLockTree"
|
|
579
|
+
kwargs["params"] = request._serialize()
|
|
580
|
+
kwargs["resp_cls"] = models.DescribeBlockingLockTreeResponse
|
|
581
|
+
kwargs["headers"] = request.headers
|
|
582
|
+
kwargs["opts"] = opts or {}
|
|
583
|
+
|
|
584
|
+
return await self.call_and_deserialize(**kwargs)
|
|
585
|
+
|
|
568
586
|
async def DescribeBlockingLogs(
|
|
569
587
|
self,
|
|
570
588
|
request: models.DescribeBlockingLogsRequest,
|
|
@@ -583,6 +601,24 @@ class DbbrainClient(AbstractClient):
|
|
|
583
601
|
|
|
584
602
|
return await self.call_and_deserialize(**kwargs)
|
|
585
603
|
|
|
604
|
+
async def DescribeBlockingTrend(
|
|
605
|
+
self,
|
|
606
|
+
request: models.DescribeBlockingTrendRequest,
|
|
607
|
+
opts: Dict = None,
|
|
608
|
+
) -> models.DescribeBlockingTrendResponse:
|
|
609
|
+
"""
|
|
610
|
+
查询指定实例在时间窗口内按时间粒度聚合的阻塞计数时序,用于前端绘制阻塞趋势图。返回每个粒度 bucket 的 (StartTime, EndTime, LockCount, MonitorLoopCount),实际聚合区间为前闭后开 [StartTime, EndTime)。为稠密时序:时间窗口内每个粒度 bucket 都返回一个点,无数据的 bucket 补零(LockCount=0, MonitorLoopCount=0),前端可直接绘制连续趋势图。粒度自动按时间跨度 deltaMs = EndTime - StartTime 决定(右开上界判定):deltaMs≤5min→SECONDS(1s),deltaMs≤1h→MINUTES(1min),deltaMs≤3h→FIVE_MINUTES(5min),deltaMs≤6h→TEN_MINUTES(10min),deltaMs≤12h→FIFTEEN_MINUTES(15min),deltaMs≤24h→THIRTY_MINUTES(30min),deltaMs>24h→HOUR(1h)。底层走 Druid timeseries 原生聚合,服务端完成聚合,适合高频前端刷新。
|
|
611
|
+
"""
|
|
612
|
+
|
|
613
|
+
kwargs = {}
|
|
614
|
+
kwargs["action"] = "DescribeBlockingTrend"
|
|
615
|
+
kwargs["params"] = request._serialize()
|
|
616
|
+
kwargs["resp_cls"] = models.DescribeBlockingTrendResponse
|
|
617
|
+
kwargs["headers"] = request.headers
|
|
618
|
+
kwargs["opts"] = opts or {}
|
|
619
|
+
|
|
620
|
+
return await self.call_and_deserialize(**kwargs)
|
|
621
|
+
|
|
586
622
|
async def DescribeDBAuditLogTopSqls(
|
|
587
623
|
self,
|
|
588
624
|
request: models.DescribeDBAuditLogTopSqlsRequest,
|
|
@@ -1447,6 +1483,24 @@ class DbbrainClient(AbstractClient):
|
|
|
1447
1483
|
|
|
1448
1484
|
return await self.call_and_deserialize(**kwargs)
|
|
1449
1485
|
|
|
1486
|
+
async def DescribeTableSpaceDataV2(
|
|
1487
|
+
self,
|
|
1488
|
+
request: models.DescribeTableSpaceDataV2Request,
|
|
1489
|
+
opts: Dict = None,
|
|
1490
|
+
) -> models.DescribeTableSpaceDataV2Response:
|
|
1491
|
+
"""
|
|
1492
|
+
表空间数据查询(融合接口,多产品统一入口)。按入参 TableSchema + TableName(PG 系额外需 TableCatalog)定位单张表/集合,返回该表的空间使用明细。支持产品:mysql(云数据库 MySQL)、cynosdb(TDSQL-C MySQL 版)、mongodb(云数据库 MongoDB)、postgres(云数据库 PostgreSQL)、sqlserver(SQL Server)、dcdb(TDSQL MySQL 版)、tdsql(TDSQL)、mariadb(云数据库 MariaDB)。返回值按产品隔离:MySQL 系列返回 MysqlTableSpaceData;PostgreSQL 返回 PostgresTableSpaceData;MongoDB 返回 MongodbTableSpaceData(含集合明细列表 SpaceSchemas 和外层 Timestamp);SQL Server 返回 SqlServerTableSpaceData。注意:只读实例(CDB RO / RO 组 / CynosDB RO / TDSQL-C 集群 RO)不支持空间分析,调用将直接报错。
|
|
1493
|
+
"""
|
|
1494
|
+
|
|
1495
|
+
kwargs = {}
|
|
1496
|
+
kwargs["action"] = "DescribeTableSpaceDataV2"
|
|
1497
|
+
kwargs["params"] = request._serialize()
|
|
1498
|
+
kwargs["resp_cls"] = models.DescribeTableSpaceDataV2Response
|
|
1499
|
+
kwargs["headers"] = request.headers
|
|
1500
|
+
kwargs["opts"] = opts or {}
|
|
1501
|
+
|
|
1502
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1503
|
+
|
|
1450
1504
|
async def DescribeTopSpaceSchemaTimeSeries(
|
|
1451
1505
|
self,
|
|
1452
1506
|
request: models.DescribeTopSpaceSchemaTimeSeriesRequest,
|
|
@@ -1483,6 +1537,24 @@ class DbbrainClient(AbstractClient):
|
|
|
1483
1537
|
|
|
1484
1538
|
return await self.call_and_deserialize(**kwargs)
|
|
1485
1539
|
|
|
1540
|
+
async def DescribeTopSpaceSchemasV2(
|
|
1541
|
+
self,
|
|
1542
|
+
request: models.DescribeTopSpaceSchemasV2Request,
|
|
1543
|
+
opts: Dict = None,
|
|
1544
|
+
) -> models.DescribeTopSpaceSchemasV2Response:
|
|
1545
|
+
"""
|
|
1546
|
+
库级空间 Top 对象查询(融合接口,多产品统一入口),按 SortBy 指定的排序字段返回实例内空间占用 Top N 的数据库。支持产品:mysql(云数据库 MySQL)、cynosdb(TDSQL-C MySQL 版)、mongodb(云数据库 MongoDB)、postgres(云数据库 PostgreSQL)、dcdb(TDSQL MySQL 版)、tdsql(TDSQL)、mariadb(云数据库 MariaDB)。返回值根据产品类型返回对应字段:MySQL 系列返回 MysqlObjects(库级返回项中不包含 TableName/Engine 字段),PostgreSQL 返回 PostgresObjects(PG 的 relation/bloat 字段与 MySQL 语义不同),MongoDB 返回 MongodbObjects。
|
|
1547
|
+
"""
|
|
1548
|
+
|
|
1549
|
+
kwargs = {}
|
|
1550
|
+
kwargs["action"] = "DescribeTopSpaceSchemasV2"
|
|
1551
|
+
kwargs["params"] = request._serialize()
|
|
1552
|
+
kwargs["resp_cls"] = models.DescribeTopSpaceSchemasV2Response
|
|
1553
|
+
kwargs["headers"] = request.headers
|
|
1554
|
+
kwargs["opts"] = opts or {}
|
|
1555
|
+
|
|
1556
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1557
|
+
|
|
1486
1558
|
async def DescribeTopSpaceTableTimeSeries(
|
|
1487
1559
|
self,
|
|
1488
1560
|
request: models.DescribeTopSpaceTableTimeSeriesRequest,
|