tencentcloud-sdk-python-dbbrain 3.0.1291__py2.py3-none-any.whl → 3.0.1301__py2.py3-none-any.whl

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/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1291'
17
+ __version__ = '3.0.1301'
@@ -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
 
@@ -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
 
@@ -7256,13 +7415,16 @@ class DescribeRedisTopKeyPrefixListRequest(AbstractModel):
7256
7415
  :type Date: str
7257
7416
  :param _Product: 服务产品类型,支持值包括 "redis" - 云数据库 Redis。
7258
7417
  :type Product: str
7259
- :param _Limit: 查询数目,默认为20,最大值为100
7418
+ :param _Limit: 查询数目,默认为20,最大值为500
7260
7419
  :type Limit: int
7420
+ :param _ShardIds: 分片ID数组。
7421
+ :type ShardIds: list of int
7261
7422
  """
7262
7423
  self._InstanceId = None
7263
7424
  self._Date = None
7264
7425
  self._Product = None
7265
7426
  self._Limit = None
7427
+ self._ShardIds = None
7266
7428
 
7267
7429
  @property
7268
7430
  def InstanceId(self):
@@ -7299,7 +7461,7 @@ class DescribeRedisTopKeyPrefixListRequest(AbstractModel):
7299
7461
 
7300
7462
  @property
7301
7463
  def Limit(self):
7302
- """查询数目,默认为20,最大值为100
7464
+ """查询数目,默认为20,最大值为500
7303
7465
  :rtype: int
7304
7466
  """
7305
7467
  return self._Limit
@@ -7308,12 +7470,24 @@ class DescribeRedisTopKeyPrefixListRequest(AbstractModel):
7308
7470
  def Limit(self, Limit):
7309
7471
  self._Limit = Limit
7310
7472
 
7473
+ @property
7474
+ def ShardIds(self):
7475
+ """分片ID数组。
7476
+ :rtype: list of int
7477
+ """
7478
+ return self._ShardIds
7479
+
7480
+ @ShardIds.setter
7481
+ def ShardIds(self, ShardIds):
7482
+ self._ShardIds = ShardIds
7483
+
7311
7484
 
7312
7485
  def _deserialize(self, params):
7313
7486
  self._InstanceId = params.get("InstanceId")
7314
7487
  self._Date = params.get("Date")
7315
7488
  self._Product = params.get("Product")
7316
7489
  self._Limit = params.get("Limit")
7490
+ self._ShardIds = params.get("ShardIds")
7317
7491
  memeber_set = set(params.keys())
7318
7492
  for name, value in vars(self).items():
7319
7493
  property_name = name[1:]
@@ -16281,6 +16455,102 @@ class TimeSlice(AbstractModel):
16281
16455
 
16282
16456
 
16283
16457
 
16458
+ class TopHotKeys(AbstractModel):
16459
+ """热key分析返回信息
16460
+
16461
+ """
16462
+
16463
+ def __init__(self):
16464
+ r"""
16465
+ :param _Count: 访问频次。
16466
+ :type Count: int
16467
+ :param _Db: 热Key所属数据库。
16468
+ :type Db: str
16469
+ :param _InstanceNodeId: Redis节点。
16470
+ :type InstanceNodeId: str
16471
+ :param _Key: 热Key。
16472
+ :type Key: str
16473
+ :param _Type: 数据类型。
16474
+ :type Type: str
16475
+ """
16476
+ self._Count = None
16477
+ self._Db = None
16478
+ self._InstanceNodeId = None
16479
+ self._Key = None
16480
+ self._Type = None
16481
+
16482
+ @property
16483
+ def Count(self):
16484
+ """访问频次。
16485
+ :rtype: int
16486
+ """
16487
+ return self._Count
16488
+
16489
+ @Count.setter
16490
+ def Count(self, Count):
16491
+ self._Count = Count
16492
+
16493
+ @property
16494
+ def Db(self):
16495
+ """热Key所属数据库。
16496
+ :rtype: str
16497
+ """
16498
+ return self._Db
16499
+
16500
+ @Db.setter
16501
+ def Db(self, Db):
16502
+ self._Db = Db
16503
+
16504
+ @property
16505
+ def InstanceNodeId(self):
16506
+ """Redis节点。
16507
+ :rtype: str
16508
+ """
16509
+ return self._InstanceNodeId
16510
+
16511
+ @InstanceNodeId.setter
16512
+ def InstanceNodeId(self, InstanceNodeId):
16513
+ self._InstanceNodeId = InstanceNodeId
16514
+
16515
+ @property
16516
+ def Key(self):
16517
+ """热Key。
16518
+ :rtype: str
16519
+ """
16520
+ return self._Key
16521
+
16522
+ @Key.setter
16523
+ def Key(self, Key):
16524
+ self._Key = Key
16525
+
16526
+ @property
16527
+ def Type(self):
16528
+ """数据类型。
16529
+ :rtype: str
16530
+ """
16531
+ return self._Type
16532
+
16533
+ @Type.setter
16534
+ def Type(self, Type):
16535
+ self._Type = Type
16536
+
16537
+
16538
+ def _deserialize(self, params):
16539
+ self._Count = params.get("Count")
16540
+ self._Db = params.get("Db")
16541
+ self._InstanceNodeId = params.get("InstanceNodeId")
16542
+ self._Key = params.get("Key")
16543
+ self._Type = params.get("Type")
16544
+ memeber_set = set(params.keys())
16545
+ for name, value in vars(self).items():
16546
+ property_name = name[1:]
16547
+ if property_name in memeber_set:
16548
+ memeber_set.remove(property_name)
16549
+ if len(memeber_set) > 0:
16550
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16551
+
16552
+
16553
+
16284
16554
  class UpdateAgentSwitchRequest(AbstractModel):
16285
16555
  """UpdateAgentSwitch请求参数结构体
16286
16556
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dbbrain
3
- Version: 3.0.1291
3
+ Version: 3.0.1301
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 (==3.0.1291)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1301)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -1,14 +1,14 @@
1
- tencentcloud/__init__.py,sha256=Ux9ATZnVOxr5DAV-M8h9CjmBGxr60JKJ9oj3-WXQw0E,631
1
+ tencentcloud/__init__.py,sha256=aOLY-V2BFOfUsawq_m7VI5k58aq8wIRUth2t4ZlILOw,631
2
2
  tencentcloud/dbbrain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/dbbrain/v20191016/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/dbbrain/v20191016/dbbrain_client.py,sha256=y0CGqcMIR-iZT2lCfFZG6i7zC2A0uhWTZac3lBixaDw,27767
5
5
  tencentcloud/dbbrain/v20191016/errorcodes.py,sha256=wnHsy05CDIIuHtBrnD-B59DV96DnEFDmvXDXt4TvSXM,1652
6
6
  tencentcloud/dbbrain/v20191016/models.py,sha256=FmVzQBFmDNebBAAYmI8PyZWXlxDz-ivjx4zVLjtkWWQ,229666
7
7
  tencentcloud/dbbrain/v20210527/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- tencentcloud/dbbrain/v20210527/dbbrain_client.py,sha256=haKd0OEiHaNkpQHpmfDOLpUXxKA2V9r8_5DwZ-X1-34,62076
8
+ tencentcloud/dbbrain/v20210527/dbbrain_client.py,sha256=OJzwM9pSDPxnbYtpisqpOqmpbD5FF2EAIHXvac6swZk,62983
9
9
  tencentcloud/dbbrain/v20210527/errorcodes.py,sha256=1_O1MV43gQWvTMJGz66l4BgfmMXaz2EI_v069aadx0E,2143
10
- tencentcloud/dbbrain/v20210527/models.py,sha256=MT0uw-dZA0VV8AGZS5Kl9b_R8FJPdTMHIqbirgOuN2M,496867
11
- tencentcloud_sdk_python_dbbrain-3.0.1291.dist-info/METADATA,sha256=zUi6x76E390bD_blVc1k2e6aLPsAkUybfEgcpbYz-M0,1516
12
- tencentcloud_sdk_python_dbbrain-3.0.1291.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
13
- tencentcloud_sdk_python_dbbrain-3.0.1291.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
14
- tencentcloud_sdk_python_dbbrain-3.0.1291.dist-info/RECORD,,
10
+ tencentcloud/dbbrain/v20210527/models.py,sha256=1hFblvBGFaXeIQNTZX2W0_a8oMZmIaWvvbqaYlVpCaQ,504386
11
+ tencentcloud_sdk_python_dbbrain-3.0.1301.dist-info/METADATA,sha256=fisrjta_MQgsPLxFxezufGfVC7i7YajMhuDPfxAnP04,1516
12
+ tencentcloud_sdk_python_dbbrain-3.0.1301.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
13
+ tencentcloud_sdk_python_dbbrain-3.0.1301.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
14
+ tencentcloud_sdk_python_dbbrain-3.0.1301.dist-info/RECORD,,