tencentcloud-sdk-python-dbbrain 3.0.867__tar.gz → 3.0.870__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.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud/dbbrain/v20210527/models.py +213 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud_sdk_python_dbbrain.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/README.rst +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/setup.cfg +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/setup.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud/dbbrain/__init__.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud/dbbrain/v20191016/models.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud/dbbrain/v20210527/errorcodes.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
|
@@ -256,6 +256,29 @@ class DbbrainClient(AbstractClient):
|
|
|
256
256
|
raise TencentCloudSDKException(e.message, e.message)
|
|
257
257
|
|
|
258
258
|
|
|
259
|
+
def DeleteDBDiagReportTasks(self, request):
|
|
260
|
+
"""根据任务id删除健康报告生成任务
|
|
261
|
+
|
|
262
|
+
:param request: Request instance for DeleteDBDiagReportTasks.
|
|
263
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DeleteDBDiagReportTasksRequest`
|
|
264
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DeleteDBDiagReportTasksResponse`
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
try:
|
|
268
|
+
params = request._serialize()
|
|
269
|
+
headers = request.headers
|
|
270
|
+
body = self.call("DeleteDBDiagReportTasks", params, headers=headers)
|
|
271
|
+
response = json.loads(body)
|
|
272
|
+
model = models.DeleteDBDiagReportTasksResponse()
|
|
273
|
+
model._deserialize(response["Response"])
|
|
274
|
+
return model
|
|
275
|
+
except Exception as e:
|
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
|
277
|
+
raise
|
|
278
|
+
else:
|
|
279
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
280
|
+
|
|
281
|
+
|
|
259
282
|
def DeleteSecurityAuditLogExportTasks(self, request):
|
|
260
283
|
"""删除安全审计日志导出任务。
|
|
261
284
|
|
|
@@ -785,6 +808,29 @@ class DbbrainClient(AbstractClient):
|
|
|
785
808
|
raise TencentCloudSDKException(e.message, e.message)
|
|
786
809
|
|
|
787
810
|
|
|
811
|
+
def DescribeSlowLogs(self, request):
|
|
812
|
+
"""获取指定时间内某个sql模版的慢日志明细
|
|
813
|
+
|
|
814
|
+
:param request: Request instance for DescribeSlowLogs.
|
|
815
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeSlowLogsRequest`
|
|
816
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeSlowLogsResponse`
|
|
817
|
+
|
|
818
|
+
"""
|
|
819
|
+
try:
|
|
820
|
+
params = request._serialize()
|
|
821
|
+
headers = request.headers
|
|
822
|
+
body = self.call("DescribeSlowLogs", params, headers=headers)
|
|
823
|
+
response = json.loads(body)
|
|
824
|
+
model = models.DescribeSlowLogsResponse()
|
|
825
|
+
model._deserialize(response["Response"])
|
|
826
|
+
return model
|
|
827
|
+
except Exception as e:
|
|
828
|
+
if isinstance(e, TencentCloudSDKException):
|
|
829
|
+
raise
|
|
830
|
+
else:
|
|
831
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
832
|
+
|
|
833
|
+
|
|
788
834
|
def DescribeSqlFilters(self, request):
|
|
789
835
|
"""查询实例SQL限流任务列表。
|
|
790
836
|
|
|
@@ -657,6 +657,60 @@ class CreateSqlFilterResponse(AbstractModel):
|
|
|
657
657
|
self.RequestId = params.get("RequestId")
|
|
658
658
|
|
|
659
659
|
|
|
660
|
+
class DeleteDBDiagReportTasksRequest(AbstractModel):
|
|
661
|
+
"""DeleteDBDiagReportTasks请求参数结构体
|
|
662
|
+
|
|
663
|
+
"""
|
|
664
|
+
|
|
665
|
+
def __init__(self):
|
|
666
|
+
r"""
|
|
667
|
+
:param AsyncRequestIds: 需要删除的任务id列表
|
|
668
|
+
:type AsyncRequestIds: list of int
|
|
669
|
+
:param InstanceId: 实例ID
|
|
670
|
+
:type InstanceId: str
|
|
671
|
+
:param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL, "mongodb" - 云数据库 CynosDB for MySQL,
|
|
672
|
+
默认值为"mysql"。
|
|
673
|
+
:type Product: str
|
|
674
|
+
"""
|
|
675
|
+
self.AsyncRequestIds = None
|
|
676
|
+
self.InstanceId = None
|
|
677
|
+
self.Product = None
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
def _deserialize(self, params):
|
|
681
|
+
self.AsyncRequestIds = params.get("AsyncRequestIds")
|
|
682
|
+
self.InstanceId = params.get("InstanceId")
|
|
683
|
+
self.Product = params.get("Product")
|
|
684
|
+
memeber_set = set(params.keys())
|
|
685
|
+
for name, value in vars(self).items():
|
|
686
|
+
if name in memeber_set:
|
|
687
|
+
memeber_set.remove(name)
|
|
688
|
+
if len(memeber_set) > 0:
|
|
689
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
class DeleteDBDiagReportTasksResponse(AbstractModel):
|
|
694
|
+
"""DeleteDBDiagReportTasks返回参数结构体
|
|
695
|
+
|
|
696
|
+
"""
|
|
697
|
+
|
|
698
|
+
def __init__(self):
|
|
699
|
+
r"""
|
|
700
|
+
:param Status: 任务删除状态, 0-删除成功
|
|
701
|
+
:type Status: int
|
|
702
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
703
|
+
:type RequestId: str
|
|
704
|
+
"""
|
|
705
|
+
self.Status = None
|
|
706
|
+
self.RequestId = None
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
def _deserialize(self, params):
|
|
710
|
+
self.Status = params.get("Status")
|
|
711
|
+
self.RequestId = params.get("RequestId")
|
|
712
|
+
|
|
713
|
+
|
|
660
714
|
class DeleteSecurityAuditLogExportTasksRequest(AbstractModel):
|
|
661
715
|
"""DeleteSecurityAuditLogExportTasks请求参数结构体
|
|
662
716
|
|
|
@@ -2264,6 +2318,104 @@ class DescribeSlowLogUserHostStatsResponse(AbstractModel):
|
|
|
2264
2318
|
self.RequestId = params.get("RequestId")
|
|
2265
2319
|
|
|
2266
2320
|
|
|
2321
|
+
class DescribeSlowLogsRequest(AbstractModel):
|
|
2322
|
+
"""DescribeSlowLogs请求参数结构体
|
|
2323
|
+
|
|
2324
|
+
"""
|
|
2325
|
+
|
|
2326
|
+
def __init__(self):
|
|
2327
|
+
r"""
|
|
2328
|
+
:param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
|
|
2329
|
+
:type Product: str
|
|
2330
|
+
:param InstanceId: 实例id。
|
|
2331
|
+
:type InstanceId: str
|
|
2332
|
+
:param Md5: sql模版的md5值
|
|
2333
|
+
:type Md5: str
|
|
2334
|
+
:param StartTime: 开始时间,如“2019-09-10 12:13:14”。
|
|
2335
|
+
:type StartTime: str
|
|
2336
|
+
:param EndTime: 截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
|
|
2337
|
+
:type EndTime: str
|
|
2338
|
+
:param Offset: 分页参数
|
|
2339
|
+
:type Offset: int
|
|
2340
|
+
:param Limit: 分页参数
|
|
2341
|
+
:type Limit: int
|
|
2342
|
+
:param DB: 数据库列表
|
|
2343
|
+
:type DB: list of str
|
|
2344
|
+
:param Key: 关键字
|
|
2345
|
+
:type Key: list of str
|
|
2346
|
+
:param User: 用户
|
|
2347
|
+
:type User: list of str
|
|
2348
|
+
:param Ip: ip
|
|
2349
|
+
:type Ip: list of str
|
|
2350
|
+
:param Time: 耗时区间,耗时区间的左右边界分别对应数组的第0个元素和第一个元素
|
|
2351
|
+
:type Time: list of int
|
|
2352
|
+
"""
|
|
2353
|
+
self.Product = None
|
|
2354
|
+
self.InstanceId = None
|
|
2355
|
+
self.Md5 = None
|
|
2356
|
+
self.StartTime = None
|
|
2357
|
+
self.EndTime = None
|
|
2358
|
+
self.Offset = None
|
|
2359
|
+
self.Limit = None
|
|
2360
|
+
self.DB = None
|
|
2361
|
+
self.Key = None
|
|
2362
|
+
self.User = None
|
|
2363
|
+
self.Ip = None
|
|
2364
|
+
self.Time = None
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
def _deserialize(self, params):
|
|
2368
|
+
self.Product = params.get("Product")
|
|
2369
|
+
self.InstanceId = params.get("InstanceId")
|
|
2370
|
+
self.Md5 = params.get("Md5")
|
|
2371
|
+
self.StartTime = params.get("StartTime")
|
|
2372
|
+
self.EndTime = params.get("EndTime")
|
|
2373
|
+
self.Offset = params.get("Offset")
|
|
2374
|
+
self.Limit = params.get("Limit")
|
|
2375
|
+
self.DB = params.get("DB")
|
|
2376
|
+
self.Key = params.get("Key")
|
|
2377
|
+
self.User = params.get("User")
|
|
2378
|
+
self.Ip = params.get("Ip")
|
|
2379
|
+
self.Time = params.get("Time")
|
|
2380
|
+
memeber_set = set(params.keys())
|
|
2381
|
+
for name, value in vars(self).items():
|
|
2382
|
+
if name in memeber_set:
|
|
2383
|
+
memeber_set.remove(name)
|
|
2384
|
+
if len(memeber_set) > 0:
|
|
2385
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2386
|
+
|
|
2387
|
+
|
|
2388
|
+
|
|
2389
|
+
class DescribeSlowLogsResponse(AbstractModel):
|
|
2390
|
+
"""DescribeSlowLogs返回参数结构体
|
|
2391
|
+
|
|
2392
|
+
"""
|
|
2393
|
+
|
|
2394
|
+
def __init__(self):
|
|
2395
|
+
r"""
|
|
2396
|
+
:param TotalCount: 符合条件的记录总数。
|
|
2397
|
+
:type TotalCount: int
|
|
2398
|
+
:param Rows: 慢日志明细
|
|
2399
|
+
:type Rows: list of SlowLogInfoItem
|
|
2400
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2401
|
+
:type RequestId: str
|
|
2402
|
+
"""
|
|
2403
|
+
self.TotalCount = None
|
|
2404
|
+
self.Rows = None
|
|
2405
|
+
self.RequestId = None
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
def _deserialize(self, params):
|
|
2409
|
+
self.TotalCount = params.get("TotalCount")
|
|
2410
|
+
if params.get("Rows") is not None:
|
|
2411
|
+
self.Rows = []
|
|
2412
|
+
for item in params.get("Rows"):
|
|
2413
|
+
obj = SlowLogInfoItem()
|
|
2414
|
+
obj._deserialize(item)
|
|
2415
|
+
self.Rows.append(obj)
|
|
2416
|
+
self.RequestId = params.get("RequestId")
|
|
2417
|
+
|
|
2418
|
+
|
|
2267
2419
|
class DescribeSqlFiltersRequest(AbstractModel):
|
|
2268
2420
|
"""DescribeSqlFilters请求参数结构体
|
|
2269
2421
|
|
|
@@ -4254,6 +4406,67 @@ class SlowLogHost(AbstractModel):
|
|
|
4254
4406
|
|
|
4255
4407
|
|
|
4256
4408
|
|
|
4409
|
+
class SlowLogInfoItem(AbstractModel):
|
|
4410
|
+
"""慢日志详细信息
|
|
4411
|
+
|
|
4412
|
+
"""
|
|
4413
|
+
|
|
4414
|
+
def __init__(self):
|
|
4415
|
+
r"""
|
|
4416
|
+
:param Timestamp: 慢日志开始时间
|
|
4417
|
+
:type Timestamp: str
|
|
4418
|
+
:param SqlText: sql语句
|
|
4419
|
+
:type SqlText: str
|
|
4420
|
+
:param Database: 数据库
|
|
4421
|
+
:type Database: str
|
|
4422
|
+
:param UserName: User来源
|
|
4423
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4424
|
+
:type UserName: str
|
|
4425
|
+
:param UserHost: IP来源
|
|
4426
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4427
|
+
:type UserHost: str
|
|
4428
|
+
:param QueryTime: 执行时间,单位秒
|
|
4429
|
+
:type QueryTime: int
|
|
4430
|
+
:param LockTime: 锁时间,单位秒
|
|
4431
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4432
|
+
:type LockTime: int
|
|
4433
|
+
:param RowsExamined: 扫描行数
|
|
4434
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4435
|
+
:type RowsExamined: int
|
|
4436
|
+
:param RowsSent: 返回行数
|
|
4437
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4438
|
+
:type RowsSent: int
|
|
4439
|
+
"""
|
|
4440
|
+
self.Timestamp = None
|
|
4441
|
+
self.SqlText = None
|
|
4442
|
+
self.Database = None
|
|
4443
|
+
self.UserName = None
|
|
4444
|
+
self.UserHost = None
|
|
4445
|
+
self.QueryTime = None
|
|
4446
|
+
self.LockTime = None
|
|
4447
|
+
self.RowsExamined = None
|
|
4448
|
+
self.RowsSent = None
|
|
4449
|
+
|
|
4450
|
+
|
|
4451
|
+
def _deserialize(self, params):
|
|
4452
|
+
self.Timestamp = params.get("Timestamp")
|
|
4453
|
+
self.SqlText = params.get("SqlText")
|
|
4454
|
+
self.Database = params.get("Database")
|
|
4455
|
+
self.UserName = params.get("UserName")
|
|
4456
|
+
self.UserHost = params.get("UserHost")
|
|
4457
|
+
self.QueryTime = params.get("QueryTime")
|
|
4458
|
+
self.LockTime = params.get("LockTime")
|
|
4459
|
+
self.RowsExamined = params.get("RowsExamined")
|
|
4460
|
+
self.RowsSent = params.get("RowsSent")
|
|
4461
|
+
memeber_set = set(params.keys())
|
|
4462
|
+
for name, value in vars(self).items():
|
|
4463
|
+
if name in memeber_set:
|
|
4464
|
+
memeber_set.remove(name)
|
|
4465
|
+
if len(memeber_set) > 0:
|
|
4466
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4467
|
+
|
|
4468
|
+
|
|
4469
|
+
|
|
4257
4470
|
class SlowLogTopSqlItem(AbstractModel):
|
|
4258
4471
|
"""慢日志TopSql
|
|
4259
4472
|
|
{tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/setup.cfg
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-dbbrain-3.0.867 → tencentcloud-sdk-python-dbbrain-3.0.870}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|