tencentcloud-sdk-python-dbbrain 3.0.1289__tar.gz → 3.0.1296__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.
Files changed (20) hide show
  1. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/setup.py +1 -1
  3. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +23 -0
  5. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud/dbbrain/v20210527/models.py +259 -4
  6. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud_sdk_python_dbbrain.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-dbbrain-3.0.1296/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-dbbrain-3.0.1289/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/README.rst +0 -0
  10. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud/dbbrain/__init__.py +0 -0
  12. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
  13. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +0 -0
  14. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
  15. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud/dbbrain/v20191016/models.py +0 -0
  16. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
  17. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud/dbbrain/v20210527/errorcodes.py +0 -0
  18. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
  19. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
  20. {tencentcloud-sdk-python-dbbrain-3.0.1289 → tencentcloud-sdk-python-dbbrain-3.0.1296}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-dbbrain
3
- Version: 3.0.1289
3
+ Version: 3.0.1296
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
@@ -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.1289"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1296"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Dbbrain SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1289'
17
+ __version__ = '3.0.1296'
@@ -946,6 +946,29 @@ class DbbrainClient(AbstractClient):
946
946
  raise TencentCloudSDKException(type(e).__name__, str(e))
947
947
 
948
948
 
949
+ def DescribeRedisTopHotKeys(self, request):
950
+ """热Key分析
951
+
952
+ :param request: Request instance for DescribeRedisTopHotKeys.
953
+ :type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeRedisTopHotKeysRequest`
954
+ :rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeRedisTopHotKeysResponse`
955
+
956
+ """
957
+ try:
958
+ params = request._serialize()
959
+ headers = request.headers
960
+ body = self.call("DescribeRedisTopHotKeys", params, headers=headers)
961
+ response = json.loads(body)
962
+ model = models.DescribeRedisTopHotKeysResponse()
963
+ model._deserialize(response["Response"])
964
+ return model
965
+ except Exception as e:
966
+ if isinstance(e, TencentCloudSDKException):
967
+ raise
968
+ else:
969
+ raise TencentCloudSDKException(type(e).__name__, str(e))
970
+
971
+
949
972
  def DescribeRedisTopKeyPrefixList(self, request):
950
973
  """查询redis实例top key前缀列表。
951
974
 
@@ -4081,9 +4081,9 @@ class DescribeAuditLogFilesRequest(AbstractModel):
4081
4081
 
4082
4082
  def __init__(self):
4083
4083
  r"""
4084
- :param _Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB
4084
+ :param _Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB, "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL, "postgres" - 云数据库 PostgreSQL
4085
4085
  :type Product: str
4086
- :param _NodeRequestType: 与Product保持一致。如:"dcdb" ,"mariadb"
4086
+ :param _NodeRequestType: 该字段规则如下: 当product为"dcdb"则输入"dcdb", 当product为"mariadb"则输入"mariadb", 当product为"mysql"则输入"mysql", 当product为"cynosdb"则输入"mysql", 当product为"postgres"则输入"postgres"。
4087
4087
  :type NodeRequestType: str
4088
4088
  :param _InstanceId: 实例 ID 。
4089
4089
  :type InstanceId: str
@@ -4100,7 +4100,7 @@ class DescribeAuditLogFilesRequest(AbstractModel):
4100
4100
 
4101
4101
  @property
4102
4102
  def Product(self):
4103
- """服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB
4103
+ """服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB, "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL, "postgres" - 云数据库 PostgreSQL
4104
4104
  :rtype: str
4105
4105
  """
4106
4106
  return self._Product
@@ -4111,7 +4111,7 @@ class DescribeAuditLogFilesRequest(AbstractModel):
4111
4111
 
4112
4112
  @property
4113
4113
  def NodeRequestType(self):
4114
- """与Product保持一致。如:"dcdb" ,"mariadb"
4114
+ """该字段规则如下: 当product为"dcdb"则输入"dcdb", 当product为"mariadb"则输入"mariadb", 当product为"mysql"则输入"mysql", 当product为"cynosdb"则输入"mysql", 当product为"postgres"则输入"postgres"。
4115
4115
  :rtype: str
4116
4116
  """
4117
4117
  return self._NodeRequestType
@@ -7243,6 +7243,165 @@ class DescribeRedisTopBigKeysResponse(AbstractModel):
7243
7243
  self._RequestId = params.get("RequestId")
7244
7244
 
7245
7245
 
7246
+ class DescribeRedisTopHotKeysRequest(AbstractModel):
7247
+ """DescribeRedisTopHotKeys请求参数结构体
7248
+
7249
+ """
7250
+
7251
+ def __init__(self):
7252
+ r"""
7253
+ :param _InstanceId: 实例 ID 。
7254
+ :type InstanceId: str
7255
+ :param _StartTime: 开始时间,如“2024-09-22T00:00:00+00:00”。0天 < 当前服务器时间 - 开始时间 <= 10天。
7256
+ :type StartTime: str
7257
+ :param _EndTime: 结束时间,如“2024-09-22T01:00:00+00:00”,0天 < 结束时间 - 开始时间 <= 10天。
7258
+ :type EndTime: str
7259
+ :param _Product: 服务产品类型,仅仅支持值 "redis" - 云数据库 Redis。
7260
+ :type Product: str
7261
+ :param _InstanceNodeIds: Redis 节点数组。
7262
+ :type InstanceNodeIds: list of str
7263
+ :param _Limit: top 数目,默认为20,最大值为100。
7264
+ :type Limit: int
7265
+ """
7266
+ self._InstanceId = None
7267
+ self._StartTime = None
7268
+ self._EndTime = None
7269
+ self._Product = None
7270
+ self._InstanceNodeIds = None
7271
+ self._Limit = None
7272
+
7273
+ @property
7274
+ def InstanceId(self):
7275
+ """实例 ID 。
7276
+ :rtype: str
7277
+ """
7278
+ return self._InstanceId
7279
+
7280
+ @InstanceId.setter
7281
+ def InstanceId(self, InstanceId):
7282
+ self._InstanceId = InstanceId
7283
+
7284
+ @property
7285
+ def StartTime(self):
7286
+ """开始时间,如“2024-09-22T00:00:00+00:00”。0天 < 当前服务器时间 - 开始时间 <= 10天。
7287
+ :rtype: str
7288
+ """
7289
+ return self._StartTime
7290
+
7291
+ @StartTime.setter
7292
+ def StartTime(self, StartTime):
7293
+ self._StartTime = StartTime
7294
+
7295
+ @property
7296
+ def EndTime(self):
7297
+ """结束时间,如“2024-09-22T01:00:00+00:00”,0天 < 结束时间 - 开始时间 <= 10天。
7298
+ :rtype: str
7299
+ """
7300
+ return self._EndTime
7301
+
7302
+ @EndTime.setter
7303
+ def EndTime(self, EndTime):
7304
+ self._EndTime = EndTime
7305
+
7306
+ @property
7307
+ def Product(self):
7308
+ """服务产品类型,仅仅支持值 "redis" - 云数据库 Redis。
7309
+ :rtype: str
7310
+ """
7311
+ return self._Product
7312
+
7313
+ @Product.setter
7314
+ def Product(self, Product):
7315
+ self._Product = Product
7316
+
7317
+ @property
7318
+ def InstanceNodeIds(self):
7319
+ """Redis 节点数组。
7320
+ :rtype: list of str
7321
+ """
7322
+ return self._InstanceNodeIds
7323
+
7324
+ @InstanceNodeIds.setter
7325
+ def InstanceNodeIds(self, InstanceNodeIds):
7326
+ self._InstanceNodeIds = InstanceNodeIds
7327
+
7328
+ @property
7329
+ def Limit(self):
7330
+ """top 数目,默认为20,最大值为100。
7331
+ :rtype: int
7332
+ """
7333
+ return self._Limit
7334
+
7335
+ @Limit.setter
7336
+ def Limit(self, Limit):
7337
+ self._Limit = Limit
7338
+
7339
+
7340
+ def _deserialize(self, params):
7341
+ self._InstanceId = params.get("InstanceId")
7342
+ self._StartTime = params.get("StartTime")
7343
+ self._EndTime = params.get("EndTime")
7344
+ self._Product = params.get("Product")
7345
+ self._InstanceNodeIds = params.get("InstanceNodeIds")
7346
+ self._Limit = params.get("Limit")
7347
+ memeber_set = set(params.keys())
7348
+ for name, value in vars(self).items():
7349
+ property_name = name[1:]
7350
+ if property_name in memeber_set:
7351
+ memeber_set.remove(property_name)
7352
+ if len(memeber_set) > 0:
7353
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7354
+
7355
+
7356
+
7357
+ class DescribeRedisTopHotKeysResponse(AbstractModel):
7358
+ """DescribeRedisTopHotKeys返回参数结构体
7359
+
7360
+ """
7361
+
7362
+ def __init__(self):
7363
+ r"""
7364
+ :param _TopHotKeys: 热Key分析结果
7365
+ :type TopHotKeys: list of TopHotKeys
7366
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7367
+ :type RequestId: str
7368
+ """
7369
+ self._TopHotKeys = None
7370
+ self._RequestId = None
7371
+
7372
+ @property
7373
+ def TopHotKeys(self):
7374
+ """热Key分析结果
7375
+ :rtype: list of TopHotKeys
7376
+ """
7377
+ return self._TopHotKeys
7378
+
7379
+ @TopHotKeys.setter
7380
+ def TopHotKeys(self, TopHotKeys):
7381
+ self._TopHotKeys = TopHotKeys
7382
+
7383
+ @property
7384
+ def RequestId(self):
7385
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7386
+ :rtype: str
7387
+ """
7388
+ return self._RequestId
7389
+
7390
+ @RequestId.setter
7391
+ def RequestId(self, RequestId):
7392
+ self._RequestId = RequestId
7393
+
7394
+
7395
+ def _deserialize(self, params):
7396
+ if params.get("TopHotKeys") is not None:
7397
+ self._TopHotKeys = []
7398
+ for item in params.get("TopHotKeys"):
7399
+ obj = TopHotKeys()
7400
+ obj._deserialize(item)
7401
+ self._TopHotKeys.append(obj)
7402
+ self._RequestId = params.get("RequestId")
7403
+
7404
+
7246
7405
  class DescribeRedisTopKeyPrefixListRequest(AbstractModel):
7247
7406
  """DescribeRedisTopKeyPrefixList请求参数结构体
7248
7407
 
@@ -16281,6 +16440,102 @@ class TimeSlice(AbstractModel):
16281
16440
 
16282
16441
 
16283
16442
 
16443
+ class TopHotKeys(AbstractModel):
16444
+ """热key分析返回信息
16445
+
16446
+ """
16447
+
16448
+ def __init__(self):
16449
+ r"""
16450
+ :param _Count: 访问频次。
16451
+ :type Count: int
16452
+ :param _Db: 热Key所属数据库。
16453
+ :type Db: str
16454
+ :param _InstanceNodeId: Redis节点。
16455
+ :type InstanceNodeId: str
16456
+ :param _Key: 热Key。
16457
+ :type Key: str
16458
+ :param _Type: 数据类型。
16459
+ :type Type: str
16460
+ """
16461
+ self._Count = None
16462
+ self._Db = None
16463
+ self._InstanceNodeId = None
16464
+ self._Key = None
16465
+ self._Type = None
16466
+
16467
+ @property
16468
+ def Count(self):
16469
+ """访问频次。
16470
+ :rtype: int
16471
+ """
16472
+ return self._Count
16473
+
16474
+ @Count.setter
16475
+ def Count(self, Count):
16476
+ self._Count = Count
16477
+
16478
+ @property
16479
+ def Db(self):
16480
+ """热Key所属数据库。
16481
+ :rtype: str
16482
+ """
16483
+ return self._Db
16484
+
16485
+ @Db.setter
16486
+ def Db(self, Db):
16487
+ self._Db = Db
16488
+
16489
+ @property
16490
+ def InstanceNodeId(self):
16491
+ """Redis节点。
16492
+ :rtype: str
16493
+ """
16494
+ return self._InstanceNodeId
16495
+
16496
+ @InstanceNodeId.setter
16497
+ def InstanceNodeId(self, InstanceNodeId):
16498
+ self._InstanceNodeId = InstanceNodeId
16499
+
16500
+ @property
16501
+ def Key(self):
16502
+ """热Key。
16503
+ :rtype: str
16504
+ """
16505
+ return self._Key
16506
+
16507
+ @Key.setter
16508
+ def Key(self, Key):
16509
+ self._Key = Key
16510
+
16511
+ @property
16512
+ def Type(self):
16513
+ """数据类型。
16514
+ :rtype: str
16515
+ """
16516
+ return self._Type
16517
+
16518
+ @Type.setter
16519
+ def Type(self, Type):
16520
+ self._Type = Type
16521
+
16522
+
16523
+ def _deserialize(self, params):
16524
+ self._Count = params.get("Count")
16525
+ self._Db = params.get("Db")
16526
+ self._InstanceNodeId = params.get("InstanceNodeId")
16527
+ self._Key = params.get("Key")
16528
+ self._Type = params.get("Type")
16529
+ memeber_set = set(params.keys())
16530
+ for name, value in vars(self).items():
16531
+ property_name = name[1:]
16532
+ if property_name in memeber_set:
16533
+ memeber_set.remove(property_name)
16534
+ if len(memeber_set) > 0:
16535
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16536
+
16537
+
16538
+
16284
16539
  class UpdateAgentSwitchRequest(AbstractModel):
16285
16540
  """UpdateAgentSwitch请求参数结构体
16286
16541
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-dbbrain
3
- Version: 3.0.1289
3
+ Version: 3.0.1296
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1296
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1289