tencentcloud-sdk-python-dbbrain 3.0.1352__tar.gz → 3.0.1353__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-dbbrain might be problematic. Click here for more details.
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/setup.py +1 -1
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +23 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud/dbbrain/v20191016/models.py +375 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud/dbbrain/v20210527/models.py +701 -26
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud_sdk_python_dbbrain.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-dbbrain-3.0.1353/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-dbbrain-3.0.1352/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/README.rst +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/setup.cfg +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud/dbbrain/__init__.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud/dbbrain/v20210527/errorcodes.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/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.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1353"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Dbbrain SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -394,6 +394,29 @@ class DbbrainClient(AbstractClient):
|
|
|
394
394
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
395
395
|
|
|
396
396
|
|
|
397
|
+
def DescribeMySqlProcessList(self, request):
|
|
398
|
+
"""查询关系型数据库的实时线程列表。
|
|
399
|
+
|
|
400
|
+
:param request: Request instance for DescribeMySqlProcessList.
|
|
401
|
+
:type request: :class:`tencentcloud.dbbrain.v20191016.models.DescribeMySqlProcessListRequest`
|
|
402
|
+
:rtype: :class:`tencentcloud.dbbrain.v20191016.models.DescribeMySqlProcessListResponse`
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
try:
|
|
406
|
+
params = request._serialize()
|
|
407
|
+
headers = request.headers
|
|
408
|
+
body = self.call("DescribeMySqlProcessList", params, headers=headers)
|
|
409
|
+
response = json.loads(body)
|
|
410
|
+
model = models.DescribeMySqlProcessListResponse()
|
|
411
|
+
model._deserialize(response["Response"])
|
|
412
|
+
return model
|
|
413
|
+
except Exception as e:
|
|
414
|
+
if isinstance(e, TencentCloudSDKException):
|
|
415
|
+
raise
|
|
416
|
+
else:
|
|
417
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
|
+
|
|
419
|
+
|
|
397
420
|
def DescribeSecurityAuditLogDownloadUrls(self, request):
|
|
398
421
|
"""查询安全审计日志导出文件下载链接。目前日志文件下载仅提供腾讯云内网地址,请通过广州地域的腾讯云服务器进行下载。
|
|
399
422
|
|
|
@@ -2449,6 +2449,240 @@ class DescribeMailProfileResponse(AbstractModel):
|
|
|
2449
2449
|
self._RequestId = params.get("RequestId")
|
|
2450
2450
|
|
|
2451
2451
|
|
|
2452
|
+
class DescribeMySqlProcessListRequest(AbstractModel):
|
|
2453
|
+
"""DescribeMySqlProcessList请求参数结构体
|
|
2454
|
+
|
|
2455
|
+
"""
|
|
2456
|
+
|
|
2457
|
+
def __init__(self):
|
|
2458
|
+
r"""
|
|
2459
|
+
:param _InstanceId: 实例ID。
|
|
2460
|
+
:type InstanceId: str
|
|
2461
|
+
:param _ID: 线程的ID,用于筛选线程列表。
|
|
2462
|
+
:type ID: int
|
|
2463
|
+
:param _User: 线程的操作账号名,用于筛选线程列表。
|
|
2464
|
+
:type User: str
|
|
2465
|
+
:param _Host: 线程的操作主机地址,用于筛选线程列表。
|
|
2466
|
+
:type Host: str
|
|
2467
|
+
:param _DB: 线程的操作数据库,用于筛选线程列表。
|
|
2468
|
+
:type DB: str
|
|
2469
|
+
:param _State: 线程的操作状态,用于筛选线程列表。
|
|
2470
|
+
:type State: str
|
|
2471
|
+
:param _Command: 线程的执行类型,用于筛选线程列表。
|
|
2472
|
+
:type Command: str
|
|
2473
|
+
:param _Time: 线程的操作时长最小值,单位秒,用于筛选操作时长大于该值的线程列表。
|
|
2474
|
+
:type Time: int
|
|
2475
|
+
:param _Info: 线程的操作语句,用于筛选线程列表。
|
|
2476
|
+
:type Info: str
|
|
2477
|
+
:param _Limit: 返回数量,默认20。
|
|
2478
|
+
:type Limit: int
|
|
2479
|
+
:param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
|
2480
|
+
:type Product: str
|
|
2481
|
+
"""
|
|
2482
|
+
self._InstanceId = None
|
|
2483
|
+
self._ID = None
|
|
2484
|
+
self._User = None
|
|
2485
|
+
self._Host = None
|
|
2486
|
+
self._DB = None
|
|
2487
|
+
self._State = None
|
|
2488
|
+
self._Command = None
|
|
2489
|
+
self._Time = None
|
|
2490
|
+
self._Info = None
|
|
2491
|
+
self._Limit = None
|
|
2492
|
+
self._Product = None
|
|
2493
|
+
|
|
2494
|
+
@property
|
|
2495
|
+
def InstanceId(self):
|
|
2496
|
+
"""实例ID。
|
|
2497
|
+
:rtype: str
|
|
2498
|
+
"""
|
|
2499
|
+
return self._InstanceId
|
|
2500
|
+
|
|
2501
|
+
@InstanceId.setter
|
|
2502
|
+
def InstanceId(self, InstanceId):
|
|
2503
|
+
self._InstanceId = InstanceId
|
|
2504
|
+
|
|
2505
|
+
@property
|
|
2506
|
+
def ID(self):
|
|
2507
|
+
"""线程的ID,用于筛选线程列表。
|
|
2508
|
+
:rtype: int
|
|
2509
|
+
"""
|
|
2510
|
+
return self._ID
|
|
2511
|
+
|
|
2512
|
+
@ID.setter
|
|
2513
|
+
def ID(self, ID):
|
|
2514
|
+
self._ID = ID
|
|
2515
|
+
|
|
2516
|
+
@property
|
|
2517
|
+
def User(self):
|
|
2518
|
+
"""线程的操作账号名,用于筛选线程列表。
|
|
2519
|
+
:rtype: str
|
|
2520
|
+
"""
|
|
2521
|
+
return self._User
|
|
2522
|
+
|
|
2523
|
+
@User.setter
|
|
2524
|
+
def User(self, User):
|
|
2525
|
+
self._User = User
|
|
2526
|
+
|
|
2527
|
+
@property
|
|
2528
|
+
def Host(self):
|
|
2529
|
+
"""线程的操作主机地址,用于筛选线程列表。
|
|
2530
|
+
:rtype: str
|
|
2531
|
+
"""
|
|
2532
|
+
return self._Host
|
|
2533
|
+
|
|
2534
|
+
@Host.setter
|
|
2535
|
+
def Host(self, Host):
|
|
2536
|
+
self._Host = Host
|
|
2537
|
+
|
|
2538
|
+
@property
|
|
2539
|
+
def DB(self):
|
|
2540
|
+
"""线程的操作数据库,用于筛选线程列表。
|
|
2541
|
+
:rtype: str
|
|
2542
|
+
"""
|
|
2543
|
+
return self._DB
|
|
2544
|
+
|
|
2545
|
+
@DB.setter
|
|
2546
|
+
def DB(self, DB):
|
|
2547
|
+
self._DB = DB
|
|
2548
|
+
|
|
2549
|
+
@property
|
|
2550
|
+
def State(self):
|
|
2551
|
+
"""线程的操作状态,用于筛选线程列表。
|
|
2552
|
+
:rtype: str
|
|
2553
|
+
"""
|
|
2554
|
+
return self._State
|
|
2555
|
+
|
|
2556
|
+
@State.setter
|
|
2557
|
+
def State(self, State):
|
|
2558
|
+
self._State = State
|
|
2559
|
+
|
|
2560
|
+
@property
|
|
2561
|
+
def Command(self):
|
|
2562
|
+
"""线程的执行类型,用于筛选线程列表。
|
|
2563
|
+
:rtype: str
|
|
2564
|
+
"""
|
|
2565
|
+
return self._Command
|
|
2566
|
+
|
|
2567
|
+
@Command.setter
|
|
2568
|
+
def Command(self, Command):
|
|
2569
|
+
self._Command = Command
|
|
2570
|
+
|
|
2571
|
+
@property
|
|
2572
|
+
def Time(self):
|
|
2573
|
+
"""线程的操作时长最小值,单位秒,用于筛选操作时长大于该值的线程列表。
|
|
2574
|
+
:rtype: int
|
|
2575
|
+
"""
|
|
2576
|
+
return self._Time
|
|
2577
|
+
|
|
2578
|
+
@Time.setter
|
|
2579
|
+
def Time(self, Time):
|
|
2580
|
+
self._Time = Time
|
|
2581
|
+
|
|
2582
|
+
@property
|
|
2583
|
+
def Info(self):
|
|
2584
|
+
"""线程的操作语句,用于筛选线程列表。
|
|
2585
|
+
:rtype: str
|
|
2586
|
+
"""
|
|
2587
|
+
return self._Info
|
|
2588
|
+
|
|
2589
|
+
@Info.setter
|
|
2590
|
+
def Info(self, Info):
|
|
2591
|
+
self._Info = Info
|
|
2592
|
+
|
|
2593
|
+
@property
|
|
2594
|
+
def Limit(self):
|
|
2595
|
+
"""返回数量,默认20。
|
|
2596
|
+
:rtype: int
|
|
2597
|
+
"""
|
|
2598
|
+
return self._Limit
|
|
2599
|
+
|
|
2600
|
+
@Limit.setter
|
|
2601
|
+
def Limit(self, Limit):
|
|
2602
|
+
self._Limit = Limit
|
|
2603
|
+
|
|
2604
|
+
@property
|
|
2605
|
+
def Product(self):
|
|
2606
|
+
"""服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
|
2607
|
+
:rtype: str
|
|
2608
|
+
"""
|
|
2609
|
+
return self._Product
|
|
2610
|
+
|
|
2611
|
+
@Product.setter
|
|
2612
|
+
def Product(self, Product):
|
|
2613
|
+
self._Product = Product
|
|
2614
|
+
|
|
2615
|
+
|
|
2616
|
+
def _deserialize(self, params):
|
|
2617
|
+
self._InstanceId = params.get("InstanceId")
|
|
2618
|
+
self._ID = params.get("ID")
|
|
2619
|
+
self._User = params.get("User")
|
|
2620
|
+
self._Host = params.get("Host")
|
|
2621
|
+
self._DB = params.get("DB")
|
|
2622
|
+
self._State = params.get("State")
|
|
2623
|
+
self._Command = params.get("Command")
|
|
2624
|
+
self._Time = params.get("Time")
|
|
2625
|
+
self._Info = params.get("Info")
|
|
2626
|
+
self._Limit = params.get("Limit")
|
|
2627
|
+
self._Product = params.get("Product")
|
|
2628
|
+
memeber_set = set(params.keys())
|
|
2629
|
+
for name, value in vars(self).items():
|
|
2630
|
+
property_name = name[1:]
|
|
2631
|
+
if property_name in memeber_set:
|
|
2632
|
+
memeber_set.remove(property_name)
|
|
2633
|
+
if len(memeber_set) > 0:
|
|
2634
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2635
|
+
|
|
2636
|
+
|
|
2637
|
+
|
|
2638
|
+
class DescribeMySqlProcessListResponse(AbstractModel):
|
|
2639
|
+
"""DescribeMySqlProcessList返回参数结构体
|
|
2640
|
+
|
|
2641
|
+
"""
|
|
2642
|
+
|
|
2643
|
+
def __init__(self):
|
|
2644
|
+
r"""
|
|
2645
|
+
:param _ProcessList: 实时线程列表。
|
|
2646
|
+
:type ProcessList: list of MySqlProcess
|
|
2647
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2648
|
+
:type RequestId: str
|
|
2649
|
+
"""
|
|
2650
|
+
self._ProcessList = None
|
|
2651
|
+
self._RequestId = None
|
|
2652
|
+
|
|
2653
|
+
@property
|
|
2654
|
+
def ProcessList(self):
|
|
2655
|
+
"""实时线程列表。
|
|
2656
|
+
:rtype: list of MySqlProcess
|
|
2657
|
+
"""
|
|
2658
|
+
return self._ProcessList
|
|
2659
|
+
|
|
2660
|
+
@ProcessList.setter
|
|
2661
|
+
def ProcessList(self, ProcessList):
|
|
2662
|
+
self._ProcessList = ProcessList
|
|
2663
|
+
|
|
2664
|
+
@property
|
|
2665
|
+
def RequestId(self):
|
|
2666
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2667
|
+
:rtype: str
|
|
2668
|
+
"""
|
|
2669
|
+
return self._RequestId
|
|
2670
|
+
|
|
2671
|
+
@RequestId.setter
|
|
2672
|
+
def RequestId(self, RequestId):
|
|
2673
|
+
self._RequestId = RequestId
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
def _deserialize(self, params):
|
|
2677
|
+
if params.get("ProcessList") is not None:
|
|
2678
|
+
self._ProcessList = []
|
|
2679
|
+
for item in params.get("ProcessList"):
|
|
2680
|
+
obj = MySqlProcess()
|
|
2681
|
+
obj._deserialize(item)
|
|
2682
|
+
self._ProcessList.append(obj)
|
|
2683
|
+
self._RequestId = params.get("RequestId")
|
|
2684
|
+
|
|
2685
|
+
|
|
2452
2686
|
class DescribeSecurityAuditLogDownloadUrlsRequest(AbstractModel):
|
|
2453
2687
|
"""DescribeSecurityAuditLogDownloadUrls请求参数结构体
|
|
2454
2688
|
|
|
@@ -6165,6 +6399,147 @@ class MonitorMetricSeriesData(AbstractModel):
|
|
|
6165
6399
|
|
|
6166
6400
|
|
|
6167
6401
|
|
|
6402
|
+
class MySqlProcess(AbstractModel):
|
|
6403
|
+
"""关系型数据库线程
|
|
6404
|
+
|
|
6405
|
+
"""
|
|
6406
|
+
|
|
6407
|
+
def __init__(self):
|
|
6408
|
+
r"""
|
|
6409
|
+
:param _ID: 线程ID。
|
|
6410
|
+
:type ID: str
|
|
6411
|
+
:param _User: 线程的操作账号名。
|
|
6412
|
+
:type User: str
|
|
6413
|
+
:param _Host: 线程的操作主机地址。
|
|
6414
|
+
:type Host: str
|
|
6415
|
+
:param _DB: 线程的操作数据库。
|
|
6416
|
+
:type DB: str
|
|
6417
|
+
:param _State: 线程的操作状态。
|
|
6418
|
+
:type State: str
|
|
6419
|
+
:param _Command: 线程的执行类型。
|
|
6420
|
+
:type Command: str
|
|
6421
|
+
:param _Time: 线程的操作时长,单位秒。
|
|
6422
|
+
:type Time: str
|
|
6423
|
+
:param _Info: 线程的操作语句。
|
|
6424
|
+
:type Info: str
|
|
6425
|
+
"""
|
|
6426
|
+
self._ID = None
|
|
6427
|
+
self._User = None
|
|
6428
|
+
self._Host = None
|
|
6429
|
+
self._DB = None
|
|
6430
|
+
self._State = None
|
|
6431
|
+
self._Command = None
|
|
6432
|
+
self._Time = None
|
|
6433
|
+
self._Info = None
|
|
6434
|
+
|
|
6435
|
+
@property
|
|
6436
|
+
def ID(self):
|
|
6437
|
+
"""线程ID。
|
|
6438
|
+
:rtype: str
|
|
6439
|
+
"""
|
|
6440
|
+
return self._ID
|
|
6441
|
+
|
|
6442
|
+
@ID.setter
|
|
6443
|
+
def ID(self, ID):
|
|
6444
|
+
self._ID = ID
|
|
6445
|
+
|
|
6446
|
+
@property
|
|
6447
|
+
def User(self):
|
|
6448
|
+
"""线程的操作账号名。
|
|
6449
|
+
:rtype: str
|
|
6450
|
+
"""
|
|
6451
|
+
return self._User
|
|
6452
|
+
|
|
6453
|
+
@User.setter
|
|
6454
|
+
def User(self, User):
|
|
6455
|
+
self._User = User
|
|
6456
|
+
|
|
6457
|
+
@property
|
|
6458
|
+
def Host(self):
|
|
6459
|
+
"""线程的操作主机地址。
|
|
6460
|
+
:rtype: str
|
|
6461
|
+
"""
|
|
6462
|
+
return self._Host
|
|
6463
|
+
|
|
6464
|
+
@Host.setter
|
|
6465
|
+
def Host(self, Host):
|
|
6466
|
+
self._Host = Host
|
|
6467
|
+
|
|
6468
|
+
@property
|
|
6469
|
+
def DB(self):
|
|
6470
|
+
"""线程的操作数据库。
|
|
6471
|
+
:rtype: str
|
|
6472
|
+
"""
|
|
6473
|
+
return self._DB
|
|
6474
|
+
|
|
6475
|
+
@DB.setter
|
|
6476
|
+
def DB(self, DB):
|
|
6477
|
+
self._DB = DB
|
|
6478
|
+
|
|
6479
|
+
@property
|
|
6480
|
+
def State(self):
|
|
6481
|
+
"""线程的操作状态。
|
|
6482
|
+
:rtype: str
|
|
6483
|
+
"""
|
|
6484
|
+
return self._State
|
|
6485
|
+
|
|
6486
|
+
@State.setter
|
|
6487
|
+
def State(self, State):
|
|
6488
|
+
self._State = State
|
|
6489
|
+
|
|
6490
|
+
@property
|
|
6491
|
+
def Command(self):
|
|
6492
|
+
"""线程的执行类型。
|
|
6493
|
+
:rtype: str
|
|
6494
|
+
"""
|
|
6495
|
+
return self._Command
|
|
6496
|
+
|
|
6497
|
+
@Command.setter
|
|
6498
|
+
def Command(self, Command):
|
|
6499
|
+
self._Command = Command
|
|
6500
|
+
|
|
6501
|
+
@property
|
|
6502
|
+
def Time(self):
|
|
6503
|
+
"""线程的操作时长,单位秒。
|
|
6504
|
+
:rtype: str
|
|
6505
|
+
"""
|
|
6506
|
+
return self._Time
|
|
6507
|
+
|
|
6508
|
+
@Time.setter
|
|
6509
|
+
def Time(self, Time):
|
|
6510
|
+
self._Time = Time
|
|
6511
|
+
|
|
6512
|
+
@property
|
|
6513
|
+
def Info(self):
|
|
6514
|
+
"""线程的操作语句。
|
|
6515
|
+
:rtype: str
|
|
6516
|
+
"""
|
|
6517
|
+
return self._Info
|
|
6518
|
+
|
|
6519
|
+
@Info.setter
|
|
6520
|
+
def Info(self, Info):
|
|
6521
|
+
self._Info = Info
|
|
6522
|
+
|
|
6523
|
+
|
|
6524
|
+
def _deserialize(self, params):
|
|
6525
|
+
self._ID = params.get("ID")
|
|
6526
|
+
self._User = params.get("User")
|
|
6527
|
+
self._Host = params.get("Host")
|
|
6528
|
+
self._DB = params.get("DB")
|
|
6529
|
+
self._State = params.get("State")
|
|
6530
|
+
self._Command = params.get("Command")
|
|
6531
|
+
self._Time = params.get("Time")
|
|
6532
|
+
self._Info = params.get("Info")
|
|
6533
|
+
memeber_set = set(params.keys())
|
|
6534
|
+
for name, value in vars(self).items():
|
|
6535
|
+
property_name = name[1:]
|
|
6536
|
+
if property_name in memeber_set:
|
|
6537
|
+
memeber_set.remove(property_name)
|
|
6538
|
+
if len(memeber_set) > 0:
|
|
6539
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6540
|
+
|
|
6541
|
+
|
|
6542
|
+
|
|
6168
6543
|
class ProfileInfo(AbstractModel):
|
|
6169
6544
|
"""用户配置的信息
|
|
6170
6545
|
|
|
@@ -1130,6 +1130,29 @@ class DbbrainClient(AbstractClient):
|
|
|
1130
1130
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1131
1131
|
|
|
1132
1132
|
|
|
1133
|
+
def DescribeRedisSlowLogTopSqls(self, request):
|
|
1134
|
+
"""统计排序指定时间段内的top慢sql。
|
|
1135
|
+
|
|
1136
|
+
:param request: Request instance for DescribeRedisSlowLogTopSqls.
|
|
1137
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeRedisSlowLogTopSqlsRequest`
|
|
1138
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeRedisSlowLogTopSqlsResponse`
|
|
1139
|
+
|
|
1140
|
+
"""
|
|
1141
|
+
try:
|
|
1142
|
+
params = request._serialize()
|
|
1143
|
+
headers = request.headers
|
|
1144
|
+
body = self.call("DescribeRedisSlowLogTopSqls", params, headers=headers)
|
|
1145
|
+
response = json.loads(body)
|
|
1146
|
+
model = models.DescribeRedisSlowLogTopSqlsResponse()
|
|
1147
|
+
model._deserialize(response["Response"])
|
|
1148
|
+
return model
|
|
1149
|
+
except Exception as e:
|
|
1150
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1151
|
+
raise
|
|
1152
|
+
else:
|
|
1153
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1154
|
+
|
|
1155
|
+
|
|
1133
1156
|
def DescribeRedisTopBigKeys(self, request):
|
|
1134
1157
|
"""查询redis实例大key列表。
|
|
1135
1158
|
|
|
@@ -1245,6 +1268,29 @@ class DbbrainClient(AbstractClient):
|
|
|
1245
1268
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1246
1269
|
|
|
1247
1270
|
|
|
1271
|
+
def DescribeSlowLogQueryTimeStats(self, request):
|
|
1272
|
+
"""统计排序指定时间段内的top慢sql。
|
|
1273
|
+
|
|
1274
|
+
:param request: Request instance for DescribeSlowLogQueryTimeStats.
|
|
1275
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeSlowLogQueryTimeStatsRequest`
|
|
1276
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeSlowLogQueryTimeStatsResponse`
|
|
1277
|
+
|
|
1278
|
+
"""
|
|
1279
|
+
try:
|
|
1280
|
+
params = request._serialize()
|
|
1281
|
+
headers = request.headers
|
|
1282
|
+
body = self.call("DescribeSlowLogQueryTimeStats", params, headers=headers)
|
|
1283
|
+
response = json.loads(body)
|
|
1284
|
+
model = models.DescribeSlowLogQueryTimeStatsResponse()
|
|
1285
|
+
model._deserialize(response["Response"])
|
|
1286
|
+
return model
|
|
1287
|
+
except Exception as e:
|
|
1288
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1289
|
+
raise
|
|
1290
|
+
else:
|
|
1291
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1292
|
+
|
|
1293
|
+
|
|
1248
1294
|
def DescribeSlowLogTimeSeriesStats(self, request):
|
|
1249
1295
|
"""获取慢日志统计柱状图。
|
|
1250
1296
|
|
|
@@ -8829,6 +8829,225 @@ class DescribeRedisProcessListResponse(AbstractModel):
|
|
|
8829
8829
|
self._RequestId = params.get("RequestId")
|
|
8830
8830
|
|
|
8831
8831
|
|
|
8832
|
+
class DescribeRedisSlowLogTopSqlsRequest(AbstractModel):
|
|
8833
|
+
"""DescribeRedisSlowLogTopSqls请求参数结构体
|
|
8834
|
+
|
|
8835
|
+
"""
|
|
8836
|
+
|
|
8837
|
+
def __init__(self):
|
|
8838
|
+
r"""
|
|
8839
|
+
:param _InstanceId: 实例 ID 。
|
|
8840
|
+
:type InstanceId: str
|
|
8841
|
+
:param _StartTime: 开始时间,如“2019-09-10 12:13:14”。
|
|
8842
|
+
:type StartTime: str
|
|
8843
|
+
:param _EndTime: 截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
|
|
8844
|
+
:type EndTime: str
|
|
8845
|
+
:param _Product: 服务产品类型,支持值: "redis" - 云数据库 Redis。
|
|
8846
|
+
:type Product: str
|
|
8847
|
+
:param _InstanceProxyId: Redis Proxy节点ID。
|
|
8848
|
+
:type InstanceProxyId: str
|
|
8849
|
+
:param _SortBy: 排序键,支持ExecTimes,QueryTime,QueryTimeMax,QueryTimeAvg等排序键,默认为QueryTime。
|
|
8850
|
+
:type SortBy: str
|
|
8851
|
+
:param _OrderBy: 排序方式,支持ASC(升序)以及DESC(降序),默认为DESC。
|
|
8852
|
+
:type OrderBy: str
|
|
8853
|
+
:param _Limit: 返回数量,默认为20,最大值为100。
|
|
8854
|
+
:type Limit: int
|
|
8855
|
+
:param _Offset: 偏移量,默认为0。
|
|
8856
|
+
:type Offset: int
|
|
8857
|
+
"""
|
|
8858
|
+
self._InstanceId = None
|
|
8859
|
+
self._StartTime = None
|
|
8860
|
+
self._EndTime = None
|
|
8861
|
+
self._Product = None
|
|
8862
|
+
self._InstanceProxyId = None
|
|
8863
|
+
self._SortBy = None
|
|
8864
|
+
self._OrderBy = None
|
|
8865
|
+
self._Limit = None
|
|
8866
|
+
self._Offset = None
|
|
8867
|
+
|
|
8868
|
+
@property
|
|
8869
|
+
def InstanceId(self):
|
|
8870
|
+
"""实例 ID 。
|
|
8871
|
+
:rtype: str
|
|
8872
|
+
"""
|
|
8873
|
+
return self._InstanceId
|
|
8874
|
+
|
|
8875
|
+
@InstanceId.setter
|
|
8876
|
+
def InstanceId(self, InstanceId):
|
|
8877
|
+
self._InstanceId = InstanceId
|
|
8878
|
+
|
|
8879
|
+
@property
|
|
8880
|
+
def StartTime(self):
|
|
8881
|
+
"""开始时间,如“2019-09-10 12:13:14”。
|
|
8882
|
+
:rtype: str
|
|
8883
|
+
"""
|
|
8884
|
+
return self._StartTime
|
|
8885
|
+
|
|
8886
|
+
@StartTime.setter
|
|
8887
|
+
def StartTime(self, StartTime):
|
|
8888
|
+
self._StartTime = StartTime
|
|
8889
|
+
|
|
8890
|
+
@property
|
|
8891
|
+
def EndTime(self):
|
|
8892
|
+
"""截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
|
|
8893
|
+
:rtype: str
|
|
8894
|
+
"""
|
|
8895
|
+
return self._EndTime
|
|
8896
|
+
|
|
8897
|
+
@EndTime.setter
|
|
8898
|
+
def EndTime(self, EndTime):
|
|
8899
|
+
self._EndTime = EndTime
|
|
8900
|
+
|
|
8901
|
+
@property
|
|
8902
|
+
def Product(self):
|
|
8903
|
+
"""服务产品类型,支持值: "redis" - 云数据库 Redis。
|
|
8904
|
+
:rtype: str
|
|
8905
|
+
"""
|
|
8906
|
+
return self._Product
|
|
8907
|
+
|
|
8908
|
+
@Product.setter
|
|
8909
|
+
def Product(self, Product):
|
|
8910
|
+
self._Product = Product
|
|
8911
|
+
|
|
8912
|
+
@property
|
|
8913
|
+
def InstanceProxyId(self):
|
|
8914
|
+
"""Redis Proxy节点ID。
|
|
8915
|
+
:rtype: str
|
|
8916
|
+
"""
|
|
8917
|
+
return self._InstanceProxyId
|
|
8918
|
+
|
|
8919
|
+
@InstanceProxyId.setter
|
|
8920
|
+
def InstanceProxyId(self, InstanceProxyId):
|
|
8921
|
+
self._InstanceProxyId = InstanceProxyId
|
|
8922
|
+
|
|
8923
|
+
@property
|
|
8924
|
+
def SortBy(self):
|
|
8925
|
+
"""排序键,支持ExecTimes,QueryTime,QueryTimeMax,QueryTimeAvg等排序键,默认为QueryTime。
|
|
8926
|
+
:rtype: str
|
|
8927
|
+
"""
|
|
8928
|
+
return self._SortBy
|
|
8929
|
+
|
|
8930
|
+
@SortBy.setter
|
|
8931
|
+
def SortBy(self, SortBy):
|
|
8932
|
+
self._SortBy = SortBy
|
|
8933
|
+
|
|
8934
|
+
@property
|
|
8935
|
+
def OrderBy(self):
|
|
8936
|
+
"""排序方式,支持ASC(升序)以及DESC(降序),默认为DESC。
|
|
8937
|
+
:rtype: str
|
|
8938
|
+
"""
|
|
8939
|
+
return self._OrderBy
|
|
8940
|
+
|
|
8941
|
+
@OrderBy.setter
|
|
8942
|
+
def OrderBy(self, OrderBy):
|
|
8943
|
+
self._OrderBy = OrderBy
|
|
8944
|
+
|
|
8945
|
+
@property
|
|
8946
|
+
def Limit(self):
|
|
8947
|
+
"""返回数量,默认为20,最大值为100。
|
|
8948
|
+
:rtype: int
|
|
8949
|
+
"""
|
|
8950
|
+
return self._Limit
|
|
8951
|
+
|
|
8952
|
+
@Limit.setter
|
|
8953
|
+
def Limit(self, Limit):
|
|
8954
|
+
self._Limit = Limit
|
|
8955
|
+
|
|
8956
|
+
@property
|
|
8957
|
+
def Offset(self):
|
|
8958
|
+
"""偏移量,默认为0。
|
|
8959
|
+
:rtype: int
|
|
8960
|
+
"""
|
|
8961
|
+
return self._Offset
|
|
8962
|
+
|
|
8963
|
+
@Offset.setter
|
|
8964
|
+
def Offset(self, Offset):
|
|
8965
|
+
self._Offset = Offset
|
|
8966
|
+
|
|
8967
|
+
|
|
8968
|
+
def _deserialize(self, params):
|
|
8969
|
+
self._InstanceId = params.get("InstanceId")
|
|
8970
|
+
self._StartTime = params.get("StartTime")
|
|
8971
|
+
self._EndTime = params.get("EndTime")
|
|
8972
|
+
self._Product = params.get("Product")
|
|
8973
|
+
self._InstanceProxyId = params.get("InstanceProxyId")
|
|
8974
|
+
self._SortBy = params.get("SortBy")
|
|
8975
|
+
self._OrderBy = params.get("OrderBy")
|
|
8976
|
+
self._Limit = params.get("Limit")
|
|
8977
|
+
self._Offset = params.get("Offset")
|
|
8978
|
+
memeber_set = set(params.keys())
|
|
8979
|
+
for name, value in vars(self).items():
|
|
8980
|
+
property_name = name[1:]
|
|
8981
|
+
if property_name in memeber_set:
|
|
8982
|
+
memeber_set.remove(property_name)
|
|
8983
|
+
if len(memeber_set) > 0:
|
|
8984
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8985
|
+
|
|
8986
|
+
|
|
8987
|
+
|
|
8988
|
+
class DescribeRedisSlowLogTopSqlsResponse(AbstractModel):
|
|
8989
|
+
"""DescribeRedisSlowLogTopSqls返回参数结构体
|
|
8990
|
+
|
|
8991
|
+
"""
|
|
8992
|
+
|
|
8993
|
+
def __init__(self):
|
|
8994
|
+
r"""
|
|
8995
|
+
:param _TotalCount: 符合条件的记录总数。
|
|
8996
|
+
:type TotalCount: int
|
|
8997
|
+
:param _Rows: 慢日志 top sql 列表。
|
|
8998
|
+
:type Rows: list of SlowLogAgg
|
|
8999
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9000
|
+
:type RequestId: str
|
|
9001
|
+
"""
|
|
9002
|
+
self._TotalCount = None
|
|
9003
|
+
self._Rows = None
|
|
9004
|
+
self._RequestId = None
|
|
9005
|
+
|
|
9006
|
+
@property
|
|
9007
|
+
def TotalCount(self):
|
|
9008
|
+
"""符合条件的记录总数。
|
|
9009
|
+
:rtype: int
|
|
9010
|
+
"""
|
|
9011
|
+
return self._TotalCount
|
|
9012
|
+
|
|
9013
|
+
@TotalCount.setter
|
|
9014
|
+
def TotalCount(self, TotalCount):
|
|
9015
|
+
self._TotalCount = TotalCount
|
|
9016
|
+
|
|
9017
|
+
@property
|
|
9018
|
+
def Rows(self):
|
|
9019
|
+
"""慢日志 top sql 列表。
|
|
9020
|
+
:rtype: list of SlowLogAgg
|
|
9021
|
+
"""
|
|
9022
|
+
return self._Rows
|
|
9023
|
+
|
|
9024
|
+
@Rows.setter
|
|
9025
|
+
def Rows(self, Rows):
|
|
9026
|
+
self._Rows = Rows
|
|
9027
|
+
|
|
9028
|
+
@property
|
|
9029
|
+
def RequestId(self):
|
|
9030
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9031
|
+
:rtype: str
|
|
9032
|
+
"""
|
|
9033
|
+
return self._RequestId
|
|
9034
|
+
|
|
9035
|
+
@RequestId.setter
|
|
9036
|
+
def RequestId(self, RequestId):
|
|
9037
|
+
self._RequestId = RequestId
|
|
9038
|
+
|
|
9039
|
+
|
|
9040
|
+
def _deserialize(self, params):
|
|
9041
|
+
self._TotalCount = params.get("TotalCount")
|
|
9042
|
+
if params.get("Rows") is not None:
|
|
9043
|
+
self._Rows = []
|
|
9044
|
+
for item in params.get("Rows"):
|
|
9045
|
+
obj = SlowLogAgg()
|
|
9046
|
+
obj._deserialize(item)
|
|
9047
|
+
self._Rows.append(obj)
|
|
9048
|
+
self._RequestId = params.get("RequestId")
|
|
9049
|
+
|
|
9050
|
+
|
|
8832
9051
|
class DescribeRedisTopBigKeysRequest(AbstractModel):
|
|
8833
9052
|
"""DescribeRedisTopBigKeys请求参数结构体
|
|
8834
9053
|
|
|
@@ -9571,38 +9790,216 @@ class DescribeSecurityAuditLogExportTasksRequest(AbstractModel):
|
|
|
9571
9790
|
|
|
9572
9791
|
|
|
9573
9792
|
|
|
9574
|
-
class DescribeSecurityAuditLogExportTasksResponse(AbstractModel):
|
|
9575
|
-
"""DescribeSecurityAuditLogExportTasks返回参数结构体
|
|
9793
|
+
class DescribeSecurityAuditLogExportTasksResponse(AbstractModel):
|
|
9794
|
+
"""DescribeSecurityAuditLogExportTasks返回参数结构体
|
|
9795
|
+
|
|
9796
|
+
"""
|
|
9797
|
+
|
|
9798
|
+
def __init__(self):
|
|
9799
|
+
r"""
|
|
9800
|
+
:param _Tasks: 安全审计日志导出任务列表。
|
|
9801
|
+
:type Tasks: list of SecLogExportTaskInfo
|
|
9802
|
+
:param _TotalCount: 安全审计日志导出任务总数。
|
|
9803
|
+
:type TotalCount: int
|
|
9804
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9805
|
+
:type RequestId: str
|
|
9806
|
+
"""
|
|
9807
|
+
self._Tasks = None
|
|
9808
|
+
self._TotalCount = None
|
|
9809
|
+
self._RequestId = None
|
|
9810
|
+
|
|
9811
|
+
@property
|
|
9812
|
+
def Tasks(self):
|
|
9813
|
+
"""安全审计日志导出任务列表。
|
|
9814
|
+
:rtype: list of SecLogExportTaskInfo
|
|
9815
|
+
"""
|
|
9816
|
+
return self._Tasks
|
|
9817
|
+
|
|
9818
|
+
@Tasks.setter
|
|
9819
|
+
def Tasks(self, Tasks):
|
|
9820
|
+
self._Tasks = Tasks
|
|
9821
|
+
|
|
9822
|
+
@property
|
|
9823
|
+
def TotalCount(self):
|
|
9824
|
+
"""安全审计日志导出任务总数。
|
|
9825
|
+
:rtype: int
|
|
9826
|
+
"""
|
|
9827
|
+
return self._TotalCount
|
|
9828
|
+
|
|
9829
|
+
@TotalCount.setter
|
|
9830
|
+
def TotalCount(self, TotalCount):
|
|
9831
|
+
self._TotalCount = TotalCount
|
|
9832
|
+
|
|
9833
|
+
@property
|
|
9834
|
+
def RequestId(self):
|
|
9835
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9836
|
+
:rtype: str
|
|
9837
|
+
"""
|
|
9838
|
+
return self._RequestId
|
|
9839
|
+
|
|
9840
|
+
@RequestId.setter
|
|
9841
|
+
def RequestId(self, RequestId):
|
|
9842
|
+
self._RequestId = RequestId
|
|
9843
|
+
|
|
9844
|
+
|
|
9845
|
+
def _deserialize(self, params):
|
|
9846
|
+
if params.get("Tasks") is not None:
|
|
9847
|
+
self._Tasks = []
|
|
9848
|
+
for item in params.get("Tasks"):
|
|
9849
|
+
obj = SecLogExportTaskInfo()
|
|
9850
|
+
obj._deserialize(item)
|
|
9851
|
+
self._Tasks.append(obj)
|
|
9852
|
+
self._TotalCount = params.get("TotalCount")
|
|
9853
|
+
self._RequestId = params.get("RequestId")
|
|
9854
|
+
|
|
9855
|
+
|
|
9856
|
+
class DescribeSlowLogQueryTimeStatsRequest(AbstractModel):
|
|
9857
|
+
"""DescribeSlowLogQueryTimeStats请求参数结构体
|
|
9858
|
+
|
|
9859
|
+
"""
|
|
9860
|
+
|
|
9861
|
+
def __init__(self):
|
|
9862
|
+
r"""
|
|
9863
|
+
:param _InstanceId: 实例 ID 。
|
|
9864
|
+
:type InstanceId: str
|
|
9865
|
+
:param _StartTime: 开始时间,如“2019-09-10 12:13:14”。
|
|
9866
|
+
:type StartTime: str
|
|
9867
|
+
:param _EndTime: 截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
|
|
9868
|
+
:type EndTime: str
|
|
9869
|
+
:param _Product: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,默认为"mysql"。
|
|
9870
|
+
:type Product: str
|
|
9871
|
+
:param _InstanceProxyId: Proxy节点ID。
|
|
9872
|
+
:type InstanceProxyId: str
|
|
9873
|
+
:param _InstanceNodeId: 实列节点ID。
|
|
9874
|
+
:type InstanceNodeId: str
|
|
9875
|
+
:param _Type: 查询类型,目前支持值:mongod,mongos。
|
|
9876
|
+
:type Type: str
|
|
9877
|
+
"""
|
|
9878
|
+
self._InstanceId = None
|
|
9879
|
+
self._StartTime = None
|
|
9880
|
+
self._EndTime = None
|
|
9881
|
+
self._Product = None
|
|
9882
|
+
self._InstanceProxyId = None
|
|
9883
|
+
self._InstanceNodeId = None
|
|
9884
|
+
self._Type = None
|
|
9885
|
+
|
|
9886
|
+
@property
|
|
9887
|
+
def InstanceId(self):
|
|
9888
|
+
"""实例 ID 。
|
|
9889
|
+
:rtype: str
|
|
9890
|
+
"""
|
|
9891
|
+
return self._InstanceId
|
|
9892
|
+
|
|
9893
|
+
@InstanceId.setter
|
|
9894
|
+
def InstanceId(self, InstanceId):
|
|
9895
|
+
self._InstanceId = InstanceId
|
|
9896
|
+
|
|
9897
|
+
@property
|
|
9898
|
+
def StartTime(self):
|
|
9899
|
+
"""开始时间,如“2019-09-10 12:13:14”。
|
|
9900
|
+
:rtype: str
|
|
9901
|
+
"""
|
|
9902
|
+
return self._StartTime
|
|
9903
|
+
|
|
9904
|
+
@StartTime.setter
|
|
9905
|
+
def StartTime(self, StartTime):
|
|
9906
|
+
self._StartTime = StartTime
|
|
9907
|
+
|
|
9908
|
+
@property
|
|
9909
|
+
def EndTime(self):
|
|
9910
|
+
"""截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
|
|
9911
|
+
:rtype: str
|
|
9912
|
+
"""
|
|
9913
|
+
return self._EndTime
|
|
9914
|
+
|
|
9915
|
+
@EndTime.setter
|
|
9916
|
+
def EndTime(self, EndTime):
|
|
9917
|
+
self._EndTime = EndTime
|
|
9918
|
+
|
|
9919
|
+
@property
|
|
9920
|
+
def Product(self):
|
|
9921
|
+
""""mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,默认为"mysql"。
|
|
9922
|
+
:rtype: str
|
|
9923
|
+
"""
|
|
9924
|
+
return self._Product
|
|
9925
|
+
|
|
9926
|
+
@Product.setter
|
|
9927
|
+
def Product(self, Product):
|
|
9928
|
+
self._Product = Product
|
|
9929
|
+
|
|
9930
|
+
@property
|
|
9931
|
+
def InstanceProxyId(self):
|
|
9932
|
+
"""Proxy节点ID。
|
|
9933
|
+
:rtype: str
|
|
9934
|
+
"""
|
|
9935
|
+
return self._InstanceProxyId
|
|
9936
|
+
|
|
9937
|
+
@InstanceProxyId.setter
|
|
9938
|
+
def InstanceProxyId(self, InstanceProxyId):
|
|
9939
|
+
self._InstanceProxyId = InstanceProxyId
|
|
9940
|
+
|
|
9941
|
+
@property
|
|
9942
|
+
def InstanceNodeId(self):
|
|
9943
|
+
"""实列节点ID。
|
|
9944
|
+
:rtype: str
|
|
9945
|
+
"""
|
|
9946
|
+
return self._InstanceNodeId
|
|
9947
|
+
|
|
9948
|
+
@InstanceNodeId.setter
|
|
9949
|
+
def InstanceNodeId(self, InstanceNodeId):
|
|
9950
|
+
self._InstanceNodeId = InstanceNodeId
|
|
9951
|
+
|
|
9952
|
+
@property
|
|
9953
|
+
def Type(self):
|
|
9954
|
+
"""查询类型,目前支持值:mongod,mongos。
|
|
9955
|
+
:rtype: str
|
|
9956
|
+
"""
|
|
9957
|
+
return self._Type
|
|
9958
|
+
|
|
9959
|
+
@Type.setter
|
|
9960
|
+
def Type(self, Type):
|
|
9961
|
+
self._Type = Type
|
|
9962
|
+
|
|
9963
|
+
|
|
9964
|
+
def _deserialize(self, params):
|
|
9965
|
+
self._InstanceId = params.get("InstanceId")
|
|
9966
|
+
self._StartTime = params.get("StartTime")
|
|
9967
|
+
self._EndTime = params.get("EndTime")
|
|
9968
|
+
self._Product = params.get("Product")
|
|
9969
|
+
self._InstanceProxyId = params.get("InstanceProxyId")
|
|
9970
|
+
self._InstanceNodeId = params.get("InstanceNodeId")
|
|
9971
|
+
self._Type = params.get("Type")
|
|
9972
|
+
memeber_set = set(params.keys())
|
|
9973
|
+
for name, value in vars(self).items():
|
|
9974
|
+
property_name = name[1:]
|
|
9975
|
+
if property_name in memeber_set:
|
|
9976
|
+
memeber_set.remove(property_name)
|
|
9977
|
+
if len(memeber_set) > 0:
|
|
9978
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9979
|
+
|
|
9980
|
+
|
|
9981
|
+
|
|
9982
|
+
class DescribeSlowLogQueryTimeStatsResponse(AbstractModel):
|
|
9983
|
+
"""DescribeSlowLogQueryTimeStats返回参数结构体
|
|
9576
9984
|
|
|
9577
9985
|
"""
|
|
9578
9986
|
|
|
9579
9987
|
def __init__(self):
|
|
9580
9988
|
r"""
|
|
9581
|
-
:param
|
|
9582
|
-
:type Tasks: list of SecLogExportTaskInfo
|
|
9583
|
-
:param _TotalCount: 安全审计日志导出任务总数。
|
|
9989
|
+
:param _TotalCount: 符合条件的记录总数。
|
|
9584
9990
|
:type TotalCount: int
|
|
9991
|
+
:param _Items: 慢日志 top sql 列表。
|
|
9992
|
+
:type Items: list of SqlCostDistribution
|
|
9585
9993
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9586
9994
|
:type RequestId: str
|
|
9587
9995
|
"""
|
|
9588
|
-
self._Tasks = None
|
|
9589
9996
|
self._TotalCount = None
|
|
9997
|
+
self._Items = None
|
|
9590
9998
|
self._RequestId = None
|
|
9591
9999
|
|
|
9592
|
-
@property
|
|
9593
|
-
def Tasks(self):
|
|
9594
|
-
"""安全审计日志导出任务列表。
|
|
9595
|
-
:rtype: list of SecLogExportTaskInfo
|
|
9596
|
-
"""
|
|
9597
|
-
return self._Tasks
|
|
9598
|
-
|
|
9599
|
-
@Tasks.setter
|
|
9600
|
-
def Tasks(self, Tasks):
|
|
9601
|
-
self._Tasks = Tasks
|
|
9602
|
-
|
|
9603
10000
|
@property
|
|
9604
10001
|
def TotalCount(self):
|
|
9605
|
-
"""
|
|
10002
|
+
"""符合条件的记录总数。
|
|
9606
10003
|
:rtype: int
|
|
9607
10004
|
"""
|
|
9608
10005
|
return self._TotalCount
|
|
@@ -9611,6 +10008,17 @@ class DescribeSecurityAuditLogExportTasksResponse(AbstractModel):
|
|
|
9611
10008
|
def TotalCount(self, TotalCount):
|
|
9612
10009
|
self._TotalCount = TotalCount
|
|
9613
10010
|
|
|
10011
|
+
@property
|
|
10012
|
+
def Items(self):
|
|
10013
|
+
"""慢日志 top sql 列表。
|
|
10014
|
+
:rtype: list of SqlCostDistribution
|
|
10015
|
+
"""
|
|
10016
|
+
return self._Items
|
|
10017
|
+
|
|
10018
|
+
@Items.setter
|
|
10019
|
+
def Items(self, Items):
|
|
10020
|
+
self._Items = Items
|
|
10021
|
+
|
|
9614
10022
|
@property
|
|
9615
10023
|
def RequestId(self):
|
|
9616
10024
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -9624,13 +10032,13 @@ class DescribeSecurityAuditLogExportTasksResponse(AbstractModel):
|
|
|
9624
10032
|
|
|
9625
10033
|
|
|
9626
10034
|
def _deserialize(self, params):
|
|
9627
|
-
if params.get("Tasks") is not None:
|
|
9628
|
-
self._Tasks = []
|
|
9629
|
-
for item in params.get("Tasks"):
|
|
9630
|
-
obj = SecLogExportTaskInfo()
|
|
9631
|
-
obj._deserialize(item)
|
|
9632
|
-
self._Tasks.append(obj)
|
|
9633
10035
|
self._TotalCount = params.get("TotalCount")
|
|
10036
|
+
if params.get("Items") is not None:
|
|
10037
|
+
self._Items = []
|
|
10038
|
+
for item in params.get("Items"):
|
|
10039
|
+
obj = SqlCostDistribution()
|
|
10040
|
+
obj._deserialize(item)
|
|
10041
|
+
self._Items.append(obj)
|
|
9634
10042
|
self._RequestId = params.get("RequestId")
|
|
9635
10043
|
|
|
9636
10044
|
|
|
@@ -9647,13 +10055,22 @@ class DescribeSlowLogTimeSeriesStatsRequest(AbstractModel):
|
|
|
9647
10055
|
:type StartTime: str
|
|
9648
10056
|
:param _EndTime: 结束时间,如“2019-09-10 12:13:14”,结束时间与开始时间的间隔最大可为7天。
|
|
9649
10057
|
:type EndTime: str
|
|
9650
|
-
:param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
|
|
10058
|
+
:param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,默认为"mysql"。
|
|
9651
10059
|
:type Product: str
|
|
10060
|
+
:param _InstanceProxyId: Proxy节点ID。
|
|
10061
|
+
:type InstanceProxyId: str
|
|
10062
|
+
:param _InstanceNodeId: 实列节点ID。
|
|
10063
|
+
:type InstanceNodeId: str
|
|
10064
|
+
:param _Type: 查询类型,目前支持值:mongod,mongos。
|
|
10065
|
+
:type Type: str
|
|
9652
10066
|
"""
|
|
9653
10067
|
self._InstanceId = None
|
|
9654
10068
|
self._StartTime = None
|
|
9655
10069
|
self._EndTime = None
|
|
9656
10070
|
self._Product = None
|
|
10071
|
+
self._InstanceProxyId = None
|
|
10072
|
+
self._InstanceNodeId = None
|
|
10073
|
+
self._Type = None
|
|
9657
10074
|
|
|
9658
10075
|
@property
|
|
9659
10076
|
def InstanceId(self):
|
|
@@ -9690,7 +10107,7 @@ class DescribeSlowLogTimeSeriesStatsRequest(AbstractModel):
|
|
|
9690
10107
|
|
|
9691
10108
|
@property
|
|
9692
10109
|
def Product(self):
|
|
9693
|
-
"""服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
|
|
10110
|
+
"""服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,默认为"mysql"。
|
|
9694
10111
|
:rtype: str
|
|
9695
10112
|
"""
|
|
9696
10113
|
return self._Product
|
|
@@ -9699,12 +10116,48 @@ class DescribeSlowLogTimeSeriesStatsRequest(AbstractModel):
|
|
|
9699
10116
|
def Product(self, Product):
|
|
9700
10117
|
self._Product = Product
|
|
9701
10118
|
|
|
10119
|
+
@property
|
|
10120
|
+
def InstanceProxyId(self):
|
|
10121
|
+
"""Proxy节点ID。
|
|
10122
|
+
:rtype: str
|
|
10123
|
+
"""
|
|
10124
|
+
return self._InstanceProxyId
|
|
10125
|
+
|
|
10126
|
+
@InstanceProxyId.setter
|
|
10127
|
+
def InstanceProxyId(self, InstanceProxyId):
|
|
10128
|
+
self._InstanceProxyId = InstanceProxyId
|
|
10129
|
+
|
|
10130
|
+
@property
|
|
10131
|
+
def InstanceNodeId(self):
|
|
10132
|
+
"""实列节点ID。
|
|
10133
|
+
:rtype: str
|
|
10134
|
+
"""
|
|
10135
|
+
return self._InstanceNodeId
|
|
10136
|
+
|
|
10137
|
+
@InstanceNodeId.setter
|
|
10138
|
+
def InstanceNodeId(self, InstanceNodeId):
|
|
10139
|
+
self._InstanceNodeId = InstanceNodeId
|
|
10140
|
+
|
|
10141
|
+
@property
|
|
10142
|
+
def Type(self):
|
|
10143
|
+
"""查询类型,目前支持值:mongod,mongos。
|
|
10144
|
+
:rtype: str
|
|
10145
|
+
"""
|
|
10146
|
+
return self._Type
|
|
10147
|
+
|
|
10148
|
+
@Type.setter
|
|
10149
|
+
def Type(self, Type):
|
|
10150
|
+
self._Type = Type
|
|
10151
|
+
|
|
9702
10152
|
|
|
9703
10153
|
def _deserialize(self, params):
|
|
9704
10154
|
self._InstanceId = params.get("InstanceId")
|
|
9705
10155
|
self._StartTime = params.get("StartTime")
|
|
9706
10156
|
self._EndTime = params.get("EndTime")
|
|
9707
10157
|
self._Product = params.get("Product")
|
|
10158
|
+
self._InstanceProxyId = params.get("InstanceProxyId")
|
|
10159
|
+
self._InstanceNodeId = params.get("InstanceNodeId")
|
|
10160
|
+
self._Type = params.get("Type")
|
|
9708
10161
|
memeber_set = set(params.keys())
|
|
9709
10162
|
for name, value in vars(self).items():
|
|
9710
10163
|
property_name = name[1:]
|
|
@@ -17243,6 +17696,147 @@ class SessionItem(AbstractModel):
|
|
|
17243
17696
|
|
|
17244
17697
|
|
|
17245
17698
|
|
|
17699
|
+
class SlowLogAgg(AbstractModel):
|
|
17700
|
+
"""redis top慢日志聚合详情。
|
|
17701
|
+
|
|
17702
|
+
"""
|
|
17703
|
+
|
|
17704
|
+
def __init__(self):
|
|
17705
|
+
r"""
|
|
17706
|
+
:param _Cmd: 命令模版。
|
|
17707
|
+
:type Cmd: str
|
|
17708
|
+
:param _Detail: 命令详情。
|
|
17709
|
+
:type Detail: str
|
|
17710
|
+
:param _ExecTimes: 执行次数。
|
|
17711
|
+
:type ExecTimes: int
|
|
17712
|
+
:param _QueryTime: 总耗时。
|
|
17713
|
+
:type QueryTime: float
|
|
17714
|
+
:param _QueryTimeAvg: 平均执行时间。
|
|
17715
|
+
:type QueryTimeAvg: float
|
|
17716
|
+
:param _QueryTimeMax: 最大执行时间。
|
|
17717
|
+
:type QueryTimeMax: float
|
|
17718
|
+
:param _QueryTimeMin: 最小执行时间。
|
|
17719
|
+
:type QueryTimeMin: float
|
|
17720
|
+
:param _QueryTimeRatio: 总耗时占比
|
|
17721
|
+
:type QueryTimeRatio: float
|
|
17722
|
+
"""
|
|
17723
|
+
self._Cmd = None
|
|
17724
|
+
self._Detail = None
|
|
17725
|
+
self._ExecTimes = None
|
|
17726
|
+
self._QueryTime = None
|
|
17727
|
+
self._QueryTimeAvg = None
|
|
17728
|
+
self._QueryTimeMax = None
|
|
17729
|
+
self._QueryTimeMin = None
|
|
17730
|
+
self._QueryTimeRatio = None
|
|
17731
|
+
|
|
17732
|
+
@property
|
|
17733
|
+
def Cmd(self):
|
|
17734
|
+
"""命令模版。
|
|
17735
|
+
:rtype: str
|
|
17736
|
+
"""
|
|
17737
|
+
return self._Cmd
|
|
17738
|
+
|
|
17739
|
+
@Cmd.setter
|
|
17740
|
+
def Cmd(self, Cmd):
|
|
17741
|
+
self._Cmd = Cmd
|
|
17742
|
+
|
|
17743
|
+
@property
|
|
17744
|
+
def Detail(self):
|
|
17745
|
+
"""命令详情。
|
|
17746
|
+
:rtype: str
|
|
17747
|
+
"""
|
|
17748
|
+
return self._Detail
|
|
17749
|
+
|
|
17750
|
+
@Detail.setter
|
|
17751
|
+
def Detail(self, Detail):
|
|
17752
|
+
self._Detail = Detail
|
|
17753
|
+
|
|
17754
|
+
@property
|
|
17755
|
+
def ExecTimes(self):
|
|
17756
|
+
"""执行次数。
|
|
17757
|
+
:rtype: int
|
|
17758
|
+
"""
|
|
17759
|
+
return self._ExecTimes
|
|
17760
|
+
|
|
17761
|
+
@ExecTimes.setter
|
|
17762
|
+
def ExecTimes(self, ExecTimes):
|
|
17763
|
+
self._ExecTimes = ExecTimes
|
|
17764
|
+
|
|
17765
|
+
@property
|
|
17766
|
+
def QueryTime(self):
|
|
17767
|
+
"""总耗时。
|
|
17768
|
+
:rtype: float
|
|
17769
|
+
"""
|
|
17770
|
+
return self._QueryTime
|
|
17771
|
+
|
|
17772
|
+
@QueryTime.setter
|
|
17773
|
+
def QueryTime(self, QueryTime):
|
|
17774
|
+
self._QueryTime = QueryTime
|
|
17775
|
+
|
|
17776
|
+
@property
|
|
17777
|
+
def QueryTimeAvg(self):
|
|
17778
|
+
"""平均执行时间。
|
|
17779
|
+
:rtype: float
|
|
17780
|
+
"""
|
|
17781
|
+
return self._QueryTimeAvg
|
|
17782
|
+
|
|
17783
|
+
@QueryTimeAvg.setter
|
|
17784
|
+
def QueryTimeAvg(self, QueryTimeAvg):
|
|
17785
|
+
self._QueryTimeAvg = QueryTimeAvg
|
|
17786
|
+
|
|
17787
|
+
@property
|
|
17788
|
+
def QueryTimeMax(self):
|
|
17789
|
+
"""最大执行时间。
|
|
17790
|
+
:rtype: float
|
|
17791
|
+
"""
|
|
17792
|
+
return self._QueryTimeMax
|
|
17793
|
+
|
|
17794
|
+
@QueryTimeMax.setter
|
|
17795
|
+
def QueryTimeMax(self, QueryTimeMax):
|
|
17796
|
+
self._QueryTimeMax = QueryTimeMax
|
|
17797
|
+
|
|
17798
|
+
@property
|
|
17799
|
+
def QueryTimeMin(self):
|
|
17800
|
+
"""最小执行时间。
|
|
17801
|
+
:rtype: float
|
|
17802
|
+
"""
|
|
17803
|
+
return self._QueryTimeMin
|
|
17804
|
+
|
|
17805
|
+
@QueryTimeMin.setter
|
|
17806
|
+
def QueryTimeMin(self, QueryTimeMin):
|
|
17807
|
+
self._QueryTimeMin = QueryTimeMin
|
|
17808
|
+
|
|
17809
|
+
@property
|
|
17810
|
+
def QueryTimeRatio(self):
|
|
17811
|
+
"""总耗时占比
|
|
17812
|
+
:rtype: float
|
|
17813
|
+
"""
|
|
17814
|
+
return self._QueryTimeRatio
|
|
17815
|
+
|
|
17816
|
+
@QueryTimeRatio.setter
|
|
17817
|
+
def QueryTimeRatio(self, QueryTimeRatio):
|
|
17818
|
+
self._QueryTimeRatio = QueryTimeRatio
|
|
17819
|
+
|
|
17820
|
+
|
|
17821
|
+
def _deserialize(self, params):
|
|
17822
|
+
self._Cmd = params.get("Cmd")
|
|
17823
|
+
self._Detail = params.get("Detail")
|
|
17824
|
+
self._ExecTimes = params.get("ExecTimes")
|
|
17825
|
+
self._QueryTime = params.get("QueryTime")
|
|
17826
|
+
self._QueryTimeAvg = params.get("QueryTimeAvg")
|
|
17827
|
+
self._QueryTimeMax = params.get("QueryTimeMax")
|
|
17828
|
+
self._QueryTimeMin = params.get("QueryTimeMin")
|
|
17829
|
+
self._QueryTimeRatio = params.get("QueryTimeRatio")
|
|
17830
|
+
memeber_set = set(params.keys())
|
|
17831
|
+
for name, value in vars(self).items():
|
|
17832
|
+
property_name = name[1:]
|
|
17833
|
+
if property_name in memeber_set:
|
|
17834
|
+
memeber_set.remove(property_name)
|
|
17835
|
+
if len(memeber_set) > 0:
|
|
17836
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
17837
|
+
|
|
17838
|
+
|
|
17839
|
+
|
|
17246
17840
|
class SlowLogHost(AbstractModel):
|
|
17247
17841
|
"""慢日志来源地址详情。
|
|
17248
17842
|
|
|
@@ -17927,6 +18521,87 @@ class SlowLogUser(AbstractModel):
|
|
|
17927
18521
|
|
|
17928
18522
|
|
|
17929
18523
|
|
|
18524
|
+
class SqlCostDistribution(AbstractModel):
|
|
18525
|
+
"""分段耗时 SQL 分布
|
|
18526
|
+
|
|
18527
|
+
"""
|
|
18528
|
+
|
|
18529
|
+
def __init__(self):
|
|
18530
|
+
r"""
|
|
18531
|
+
:param _Count: sql条数。
|
|
18532
|
+
:type Count: int
|
|
18533
|
+
:param _From: 分段耗时下边界,单位是秒。
|
|
18534
|
+
:type From: float
|
|
18535
|
+
:param _To: 分段耗时上边界,单位是秒。
|
|
18536
|
+
:type To: float
|
|
18537
|
+
:param _Ratio: 耗时占比。
|
|
18538
|
+
:type Ratio: float
|
|
18539
|
+
"""
|
|
18540
|
+
self._Count = None
|
|
18541
|
+
self._From = None
|
|
18542
|
+
self._To = None
|
|
18543
|
+
self._Ratio = None
|
|
18544
|
+
|
|
18545
|
+
@property
|
|
18546
|
+
def Count(self):
|
|
18547
|
+
"""sql条数。
|
|
18548
|
+
:rtype: int
|
|
18549
|
+
"""
|
|
18550
|
+
return self._Count
|
|
18551
|
+
|
|
18552
|
+
@Count.setter
|
|
18553
|
+
def Count(self, Count):
|
|
18554
|
+
self._Count = Count
|
|
18555
|
+
|
|
18556
|
+
@property
|
|
18557
|
+
def From(self):
|
|
18558
|
+
"""分段耗时下边界,单位是秒。
|
|
18559
|
+
:rtype: float
|
|
18560
|
+
"""
|
|
18561
|
+
return self._From
|
|
18562
|
+
|
|
18563
|
+
@From.setter
|
|
18564
|
+
def From(self, From):
|
|
18565
|
+
self._From = From
|
|
18566
|
+
|
|
18567
|
+
@property
|
|
18568
|
+
def To(self):
|
|
18569
|
+
"""分段耗时上边界,单位是秒。
|
|
18570
|
+
:rtype: float
|
|
18571
|
+
"""
|
|
18572
|
+
return self._To
|
|
18573
|
+
|
|
18574
|
+
@To.setter
|
|
18575
|
+
def To(self, To):
|
|
18576
|
+
self._To = To
|
|
18577
|
+
|
|
18578
|
+
@property
|
|
18579
|
+
def Ratio(self):
|
|
18580
|
+
"""耗时占比。
|
|
18581
|
+
:rtype: float
|
|
18582
|
+
"""
|
|
18583
|
+
return self._Ratio
|
|
18584
|
+
|
|
18585
|
+
@Ratio.setter
|
|
18586
|
+
def Ratio(self, Ratio):
|
|
18587
|
+
self._Ratio = Ratio
|
|
18588
|
+
|
|
18589
|
+
|
|
18590
|
+
def _deserialize(self, params):
|
|
18591
|
+
self._Count = params.get("Count")
|
|
18592
|
+
self._From = params.get("From")
|
|
18593
|
+
self._To = params.get("To")
|
|
18594
|
+
self._Ratio = params.get("Ratio")
|
|
18595
|
+
memeber_set = set(params.keys())
|
|
18596
|
+
for name, value in vars(self).items():
|
|
18597
|
+
property_name = name[1:]
|
|
18598
|
+
if property_name in memeber_set:
|
|
18599
|
+
memeber_set.remove(property_name)
|
|
18600
|
+
if len(memeber_set) > 0:
|
|
18601
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18602
|
+
|
|
18603
|
+
|
|
18604
|
+
|
|
17930
18605
|
class StatDimension(AbstractModel):
|
|
17931
18606
|
"""会话统计的维度信息,可以多个维度
|
|
17932
18607
|
|
tencentcloud-sdk-python-dbbrain-3.0.1353/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1353
|
tencentcloud-sdk-python-dbbrain-3.0.1352/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1352
|
{tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-dbbrain-3.0.1352 → tencentcloud-sdk-python-dbbrain-3.0.1353}/setup.cfg
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
|