tencentcloud-sdk-python 3.0.1351__py2.py3-none-any.whl → 3.0.1353__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.
Files changed (66) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/batch/v20170312/batch_client.py +0 -46
  3. tencentcloud/batch/v20170312/errorcodes.py +0 -9
  4. tencentcloud/batch/v20170312/models.py +21 -962
  5. tencentcloud/bi/v20220105/models.py +145 -0
  6. tencentcloud/cam/v20190116/errorcodes.py +3 -0
  7. tencentcloud/cam/v20190116/models.py +0 -82
  8. tencentcloud/cbs/v20170312/models.py +6 -14
  9. tencentcloud/cdn/v20180606/models.py +0 -46
  10. tencentcloud/chdfs/v20201112/models.py +2 -2
  11. tencentcloud/cls/v20201016/cls_client.py +92 -0
  12. tencentcloud/cls/v20201016/models.py +908 -26
  13. tencentcloud/controlcenter/v20230110/models.py +0 -58
  14. tencentcloud/cvm/v20170312/cvm_client.py +1 -1
  15. tencentcloud/cvm/v20170312/models.py +2 -6
  16. tencentcloud/dbbrain/v20191016/dbbrain_client.py +23 -0
  17. tencentcloud/dbbrain/v20191016/models.py +603 -10
  18. tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
  19. tencentcloud/dbbrain/v20210527/models.py +942 -49
  20. tencentcloud/dcdb/v20180411/models.py +175 -2
  21. tencentcloud/dlc/v20210125/dlc_client.py +23 -0
  22. tencentcloud/dlc/v20210125/errorcodes.py +3 -0
  23. tencentcloud/dlc/v20210125/models.py +284 -0
  24. tencentcloud/dnspod/v20210323/models.py +0 -70
  25. tencentcloud/ess/v20201111/models.py +6 -6
  26. tencentcloud/essbasic/v20210526/models.py +2 -2
  27. tencentcloud/facefusion/v20220927/models.py +4 -2
  28. tencentcloud/gs/v20191118/models.py +51 -4
  29. tencentcloud/hai/v20230812/models.py +2 -18
  30. tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +1 -1
  31. tencentcloud/iotexplorer/v20190423/models.py +141 -420
  32. tencentcloud/live/v20180801/models.py +4 -6
  33. tencentcloud/lkeap/v20240522/models.py +12 -6
  34. tencentcloud/mariadb/v20170312/models.py +151 -2
  35. tencentcloud/mps/v20190612/models.py +10 -10
  36. tencentcloud/mqtt/v20240516/models.py +97 -14
  37. tencentcloud/ocr/v20181119/errorcodes.py +0 -3
  38. tencentcloud/ocr/v20181119/models.py +143 -558
  39. tencentcloud/ocr/v20181119/ocr_client.py +0 -23
  40. tencentcloud/organization/v20210331/models.py +15 -0
  41. tencentcloud/partners/v20180321/models.py +15 -0
  42. tencentcloud/sqlserver/v20180328/models.py +15 -0
  43. tencentcloud/tcb/v20180608/models.py +20 -0
  44. tencentcloud/tdmq/v20200217/models.py +45 -0
  45. tencentcloud/teo/v20220106/teo_client.py +6 -2
  46. tencentcloud/teo/v20220901/models.py +85 -12
  47. tencentcloud/tione/v20211111/models.py +35 -3
  48. tencentcloud/trro/v20220325/models.py +992 -44
  49. tencentcloud/trro/v20220325/trro_client.py +117 -0
  50. tencentcloud/tse/v20201207/models.py +0 -34
  51. tencentcloud/vdb/v20230616/models.py +1438 -40
  52. tencentcloud/vdb/v20230616/vdb_client.py +184 -0
  53. tencentcloud/vod/v20180717/models.py +15 -0
  54. tencentcloud/vod/v20240718/errorcodes.py +33 -0
  55. tencentcloud/vod/v20240718/models.py +1839 -0
  56. tencentcloud/vod/v20240718/vod_client.py +146 -0
  57. tencentcloud/vpc/v20170312/models.py +300 -0
  58. tencentcloud/vpc/v20170312/vpc_client.py +26 -0
  59. tencentcloud/wedata/v20210820/models.py +808 -0
  60. tencentcloud/wedata/v20210820/wedata_client.py +46 -0
  61. tencentcloud/weilingwith/v20230427/weilingwith_client.py +3 -1
  62. {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/METADATA +1 -1
  63. {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/RECORD +66 -66
  64. {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/LICENSE +0 -0
  65. {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/WHEEL +0 -0
  66. {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/top_level.txt +0 -0
@@ -2424,7 +2424,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
2424
2424
  :type ContactPerson: list of int
2425
2425
  :param _ContactGroup: 接收邮件的联系组ID数组。
2426
2426
  :type ContactGroup: list of int
2427
- :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认值为"mysql"。
2427
+ :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认值为"mysql"。
2428
2428
  :type Product: str
2429
2429
  """
2430
2430
  self._InstanceId = None
@@ -2503,7 +2503,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
2503
2503
 
2504
2504
  @property
2505
2505
  def Product(self):
2506
- """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认值为"mysql"。
2506
+ """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认值为"mysql"。
2507
2507
  :rtype: str
2508
2508
  """
2509
2509
  return self._Product
@@ -2585,7 +2585,7 @@ class CreateDBDiagReportUrlRequest(AbstractModel):
2585
2585
  :type InstanceId: str
2586
2586
  :param _AsyncRequestId: 健康报告相应的任务ID,可通过DescribeDBDiagReportTasks查询。
2587
2587
  :type AsyncRequestId: int
2588
- :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
2588
+ :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
2589
2589
  :type Product: str
2590
2590
  """
2591
2591
  self._InstanceId = None
@@ -2616,7 +2616,7 @@ class CreateDBDiagReportUrlRequest(AbstractModel):
2616
2616
 
2617
2617
  @property
2618
2618
  def Product(self):
2619
- """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
2619
+ """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
2620
2620
  :rtype: str
2621
2621
  """
2622
2622
  return self._Product
@@ -5387,7 +5387,7 @@ class DescribeDBDiagEventRequest(AbstractModel):
5387
5387
  :type InstanceId: str
5388
5388
  :param _EventId: 事件 ID 。通过“获取实例诊断历史DescribeDBDiagHistory”获取。
5389
5389
  :type EventId: int
5390
- :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
5390
+ :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
5391
5391
  :type Product: str
5392
5392
  """
5393
5393
  self._InstanceId = None
@@ -5418,7 +5418,7 @@ class DescribeDBDiagEventRequest(AbstractModel):
5418
5418
 
5419
5419
  @property
5420
5420
  def Product(self):
5421
- """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
5421
+ """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
5422
5422
  :rtype: str
5423
5423
  """
5424
5424
  return self._Product
@@ -5966,7 +5966,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
5966
5966
  :type EndTime: str
5967
5967
  :param _InstanceIds: 实例ID数组,用于筛选指定实例的任务列表。
5968
5968
  :type InstanceIds: list of str
5969
- :param _Sources: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。
5969
+ :param _Sources: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 计划任务;"MANUAL" - 手动触发。
5970
5970
  :type Sources: list of str
5971
5971
  :param _HealthLevels: 报告的健康等级,支持的取值包括:"HEALTH" - 健康;"SUB_HEALTH" - 亚健康;"RISK" - 危险;"HIGH_RISK" - 高危。
5972
5972
  :type HealthLevels: str
@@ -5976,7 +5976,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
5976
5976
  :type Offset: int
5977
5977
  :param _Limit: 返回数量,默认20,最大值为100。
5978
5978
  :type Limit: int
5979
- :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
5979
+ :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
5980
5980
  :type Product: str
5981
5981
  """
5982
5982
  self._StartTime = None
@@ -6024,7 +6024,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
6024
6024
 
6025
6025
  @property
6026
6026
  def Sources(self):
6027
- """任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。
6027
+ """任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 计划任务;"MANUAL" - 手动触发。
6028
6028
  :rtype: list of str
6029
6029
  """
6030
6030
  return self._Sources
@@ -6079,7 +6079,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
6079
6079
 
6080
6080
  @property
6081
6081
  def Product(self):
6082
- """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
6082
+ """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
6083
6083
  :rtype: str
6084
6084
  """
6085
6085
  return self._Product
@@ -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
 
@@ -9634,8 +9853,8 @@ class DescribeSecurityAuditLogExportTasksResponse(AbstractModel):
9634
9853
  self._RequestId = params.get("RequestId")
9635
9854
 
9636
9855
 
9637
- class DescribeSlowLogTimeSeriesStatsRequest(AbstractModel):
9638
- """DescribeSlowLogTimeSeriesStats请求参数结构体
9856
+ class DescribeSlowLogQueryTimeStatsRequest(AbstractModel):
9857
+ """DescribeSlowLogQueryTimeStats请求参数结构体
9639
9858
 
9640
9859
  """
9641
9860
 
@@ -9645,15 +9864,24 @@ class DescribeSlowLogTimeSeriesStatsRequest(AbstractModel):
9645
9864
  :type InstanceId: str
9646
9865
  :param _StartTime: 开始时间,如“2019-09-10 12:13:14”。
9647
9866
  :type StartTime: str
9648
- :param _EndTime: 结束时间,如“2019-09-10 12:13:14”,结束时间与开始时间的间隔最大可为7天。
9867
+ :param _EndTime: 截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
9649
9868
  :type EndTime: str
9650
- :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
9869
+ :param _Product: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,默认为"mysql"。
9651
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
9652
9877
  """
9653
9878
  self._InstanceId = None
9654
9879
  self._StartTime = None
9655
9880
  self._EndTime = None
9656
9881
  self._Product = None
9882
+ self._InstanceProxyId = None
9883
+ self._InstanceNodeId = None
9884
+ self._Type = None
9657
9885
 
9658
9886
  @property
9659
9887
  def InstanceId(self):
@@ -9679,7 +9907,7 @@ class DescribeSlowLogTimeSeriesStatsRequest(AbstractModel):
9679
9907
 
9680
9908
  @property
9681
9909
  def EndTime(self):
9682
- """结束时间,如“2019-09-10 12:13:14”,结束时间与开始时间的间隔最大可为7天。
9910
+ """截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
9683
9911
  :rtype: str
9684
9912
  """
9685
9913
  return self._EndTime
@@ -9690,7 +9918,7 @@ class DescribeSlowLogTimeSeriesStatsRequest(AbstractModel):
9690
9918
 
9691
9919
  @property
9692
9920
  def Product(self):
9693
- """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
9921
+ """"mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,默认为"mysql"。
9694
9922
  :rtype: str
9695
9923
  """
9696
9924
  return self._Product
@@ -9699,24 +9927,249 @@ class DescribeSlowLogTimeSeriesStatsRequest(AbstractModel):
9699
9927
  def Product(self, Product):
9700
9928
  self._Product = Product
9701
9929
 
9930
+ @property
9931
+ def InstanceProxyId(self):
9932
+ """Proxy节点ID。
9933
+ :rtype: str
9934
+ """
9935
+ return self._InstanceProxyId
9702
9936
 
9703
- def _deserialize(self, params):
9704
- self._InstanceId = params.get("InstanceId")
9705
- self._StartTime = params.get("StartTime")
9706
- self._EndTime = params.get("EndTime")
9707
- self._Product = params.get("Product")
9708
- memeber_set = set(params.keys())
9709
- for name, value in vars(self).items():
9710
- property_name = name[1:]
9711
- if property_name in memeber_set:
9712
- memeber_set.remove(property_name)
9713
- if len(memeber_set) > 0:
9714
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9715
-
9716
-
9937
+ @InstanceProxyId.setter
9938
+ def InstanceProxyId(self, InstanceProxyId):
9939
+ self._InstanceProxyId = InstanceProxyId
9717
9940
 
9718
- class DescribeSlowLogTimeSeriesStatsResponse(AbstractModel):
9719
- """DescribeSlowLogTimeSeriesStats返回参数结构体
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返回参数结构体
9984
+
9985
+ """
9986
+
9987
+ def __init__(self):
9988
+ r"""
9989
+ :param _TotalCount: 符合条件的记录总数。
9990
+ :type TotalCount: int
9991
+ :param _Items: 慢日志 top sql 列表。
9992
+ :type Items: list of SqlCostDistribution
9993
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9994
+ :type RequestId: str
9995
+ """
9996
+ self._TotalCount = None
9997
+ self._Items = None
9998
+ self._RequestId = None
9999
+
10000
+ @property
10001
+ def TotalCount(self):
10002
+ """符合条件的记录总数。
10003
+ :rtype: int
10004
+ """
10005
+ return self._TotalCount
10006
+
10007
+ @TotalCount.setter
10008
+ def TotalCount(self, TotalCount):
10009
+ self._TotalCount = TotalCount
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
+
10022
+ @property
10023
+ def RequestId(self):
10024
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10025
+ :rtype: str
10026
+ """
10027
+ return self._RequestId
10028
+
10029
+ @RequestId.setter
10030
+ def RequestId(self, RequestId):
10031
+ self._RequestId = RequestId
10032
+
10033
+
10034
+ def _deserialize(self, params):
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)
10042
+ self._RequestId = params.get("RequestId")
10043
+
10044
+
10045
+ class DescribeSlowLogTimeSeriesStatsRequest(AbstractModel):
10046
+ """DescribeSlowLogTimeSeriesStats请求参数结构体
10047
+
10048
+ """
10049
+
10050
+ def __init__(self):
10051
+ r"""
10052
+ :param _InstanceId: 实例 ID 。
10053
+ :type InstanceId: str
10054
+ :param _StartTime: 开始时间,如“2019-09-10 12:13:14”。
10055
+ :type StartTime: str
10056
+ :param _EndTime: 结束时间,如“2019-09-10 12:13:14”,结束时间与开始时间的间隔最大可为7天。
10057
+ :type EndTime: str
10058
+ :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,默认为"mysql"。
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
10066
+ """
10067
+ self._InstanceId = None
10068
+ self._StartTime = None
10069
+ self._EndTime = None
10070
+ self._Product = None
10071
+ self._InstanceProxyId = None
10072
+ self._InstanceNodeId = None
10073
+ self._Type = None
10074
+
10075
+ @property
10076
+ def InstanceId(self):
10077
+ """实例 ID 。
10078
+ :rtype: str
10079
+ """
10080
+ return self._InstanceId
10081
+
10082
+ @InstanceId.setter
10083
+ def InstanceId(self, InstanceId):
10084
+ self._InstanceId = InstanceId
10085
+
10086
+ @property
10087
+ def StartTime(self):
10088
+ """开始时间,如“2019-09-10 12:13:14”。
10089
+ :rtype: str
10090
+ """
10091
+ return self._StartTime
10092
+
10093
+ @StartTime.setter
10094
+ def StartTime(self, StartTime):
10095
+ self._StartTime = StartTime
10096
+
10097
+ @property
10098
+ def EndTime(self):
10099
+ """结束时间,如“2019-09-10 12:13:14”,结束时间与开始时间的间隔最大可为7天。
10100
+ :rtype: str
10101
+ """
10102
+ return self._EndTime
10103
+
10104
+ @EndTime.setter
10105
+ def EndTime(self, EndTime):
10106
+ self._EndTime = EndTime
10107
+
10108
+ @property
10109
+ def Product(self):
10110
+ """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,默认为"mysql"。
10111
+ :rtype: str
10112
+ """
10113
+ return self._Product
10114
+
10115
+ @Product.setter
10116
+ def Product(self, Product):
10117
+ self._Product = Product
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
+
10152
+
10153
+ def _deserialize(self, params):
10154
+ self._InstanceId = params.get("InstanceId")
10155
+ self._StartTime = params.get("StartTime")
10156
+ self._EndTime = params.get("EndTime")
10157
+ self._Product = params.get("Product")
10158
+ self._InstanceProxyId = params.get("InstanceProxyId")
10159
+ self._InstanceNodeId = params.get("InstanceNodeId")
10160
+ self._Type = params.get("Type")
10161
+ memeber_set = set(params.keys())
10162
+ for name, value in vars(self).items():
10163
+ property_name = name[1:]
10164
+ if property_name in memeber_set:
10165
+ memeber_set.remove(property_name)
10166
+ if len(memeber_set) > 0:
10167
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
10168
+
10169
+
10170
+
10171
+ class DescribeSlowLogTimeSeriesStatsResponse(AbstractModel):
10172
+ """DescribeSlowLogTimeSeriesStats返回参数结构体
9720
10173
 
9721
10174
  """
9722
10175
 
@@ -12435,11 +12888,14 @@ class HealthStatus(AbstractModel):
12435
12888
  :type ScoreLost: int
12436
12889
  :param _ScoreDetails: 扣分详情。
12437
12890
  :type ScoreDetails: list of ScoreDetail
12891
+ :param _HealthLevelVersion: 健康等级版本,默认为"V1"
12892
+ :type HealthLevelVersion: str
12438
12893
  """
12439
12894
  self._HealthScore = None
12440
12895
  self._HealthLevel = None
12441
12896
  self._ScoreLost = None
12442
12897
  self._ScoreDetails = None
12898
+ self._HealthLevelVersion = None
12443
12899
 
12444
12900
  @property
12445
12901
  def HealthScore(self):
@@ -12485,6 +12941,17 @@ class HealthStatus(AbstractModel):
12485
12941
  def ScoreDetails(self, ScoreDetails):
12486
12942
  self._ScoreDetails = ScoreDetails
12487
12943
 
12944
+ @property
12945
+ def HealthLevelVersion(self):
12946
+ """健康等级版本,默认为"V1"
12947
+ :rtype: str
12948
+ """
12949
+ return self._HealthLevelVersion
12950
+
12951
+ @HealthLevelVersion.setter
12952
+ def HealthLevelVersion(self, HealthLevelVersion):
12953
+ self._HealthLevelVersion = HealthLevelVersion
12954
+
12488
12955
 
12489
12956
  def _deserialize(self, params):
12490
12957
  self._HealthScore = params.get("HealthScore")
@@ -12496,6 +12963,7 @@ class HealthStatus(AbstractModel):
12496
12963
  obj = ScoreDetail()
12497
12964
  obj._deserialize(item)
12498
12965
  self._ScoreDetails.append(obj)
12966
+ self._HealthLevelVersion = params.get("HealthLevelVersion")
12499
12967
  memeber_set = set(params.keys())
12500
12968
  for name, value in vars(self).items():
12501
12969
  property_name = name[1:]
@@ -12747,6 +13215,24 @@ class InstanceBasicInfo(AbstractModel):
12747
13215
  :type Product: str
12748
13216
  :param _EngineVersion: 实例引擎版本。
12749
13217
  :type EngineVersion: str
13218
+ :param _Cpu: CPU数量,对于Redis为0。
13219
+ :type Cpu: int
13220
+ :param _DeployMode: 实例部署模式。
13221
+ :type DeployMode: str
13222
+ :param _InstanceConf: 实例内存配置。
13223
+ :type InstanceConf: :class:`tencentcloud.dbbrain.v20210527.models.RedisInstanceConf`
13224
+ :param _IsSupported: DBbrain是否支持该实例。
13225
+ :type IsSupported: bool
13226
+ :param _Memory: 实例内存,单位MB。
13227
+ :type Memory: int
13228
+ :param _Region: 实例地域。
13229
+ :type Region: str
13230
+ :param _UniqSubnetId: 实例子网统一ID,对于redis为空字符串。
13231
+ :type UniqSubnetId: str
13232
+ :param _UniqVpcId: 实例私有网络统一ID,对于redis为空字符串。
13233
+ :type UniqVpcId: str
13234
+ :param _Volume: 实例磁盘容量,对于Redis为0。
13235
+ :type Volume: int
12750
13236
  """
12751
13237
  self._InstanceId = None
12752
13238
  self._InstanceName = None
@@ -12754,6 +13240,15 @@ class InstanceBasicInfo(AbstractModel):
12754
13240
  self._Vport = None
12755
13241
  self._Product = None
12756
13242
  self._EngineVersion = None
13243
+ self._Cpu = None
13244
+ self._DeployMode = None
13245
+ self._InstanceConf = None
13246
+ self._IsSupported = None
13247
+ self._Memory = None
13248
+ self._Region = None
13249
+ self._UniqSubnetId = None
13250
+ self._UniqVpcId = None
13251
+ self._Volume = None
12757
13252
 
12758
13253
  @property
12759
13254
  def InstanceId(self):
@@ -12793,33 +13288,132 @@ class InstanceBasicInfo(AbstractModel):
12793
13288
  """实例内网Port。
12794
13289
  :rtype: int
12795
13290
  """
12796
- return self._Vport
13291
+ return self._Vport
13292
+
13293
+ @Vport.setter
13294
+ def Vport(self, Vport):
13295
+ self._Vport = Vport
13296
+
13297
+ @property
13298
+ def Product(self):
13299
+ """实例产品。
13300
+ :rtype: str
13301
+ """
13302
+ return self._Product
13303
+
13304
+ @Product.setter
13305
+ def Product(self, Product):
13306
+ self._Product = Product
13307
+
13308
+ @property
13309
+ def EngineVersion(self):
13310
+ """实例引擎版本。
13311
+ :rtype: str
13312
+ """
13313
+ return self._EngineVersion
13314
+
13315
+ @EngineVersion.setter
13316
+ def EngineVersion(self, EngineVersion):
13317
+ self._EngineVersion = EngineVersion
13318
+
13319
+ @property
13320
+ def Cpu(self):
13321
+ """CPU数量,对于Redis为0。
13322
+ :rtype: int
13323
+ """
13324
+ return self._Cpu
13325
+
13326
+ @Cpu.setter
13327
+ def Cpu(self, Cpu):
13328
+ self._Cpu = Cpu
13329
+
13330
+ @property
13331
+ def DeployMode(self):
13332
+ """实例部署模式。
13333
+ :rtype: str
13334
+ """
13335
+ return self._DeployMode
13336
+
13337
+ @DeployMode.setter
13338
+ def DeployMode(self, DeployMode):
13339
+ self._DeployMode = DeployMode
13340
+
13341
+ @property
13342
+ def InstanceConf(self):
13343
+ """实例内存配置。
13344
+ :rtype: :class:`tencentcloud.dbbrain.v20210527.models.RedisInstanceConf`
13345
+ """
13346
+ return self._InstanceConf
13347
+
13348
+ @InstanceConf.setter
13349
+ def InstanceConf(self, InstanceConf):
13350
+ self._InstanceConf = InstanceConf
13351
+
13352
+ @property
13353
+ def IsSupported(self):
13354
+ """DBbrain是否支持该实例。
13355
+ :rtype: bool
13356
+ """
13357
+ return self._IsSupported
13358
+
13359
+ @IsSupported.setter
13360
+ def IsSupported(self, IsSupported):
13361
+ self._IsSupported = IsSupported
13362
+
13363
+ @property
13364
+ def Memory(self):
13365
+ """实例内存,单位MB。
13366
+ :rtype: int
13367
+ """
13368
+ return self._Memory
13369
+
13370
+ @Memory.setter
13371
+ def Memory(self, Memory):
13372
+ self._Memory = Memory
13373
+
13374
+ @property
13375
+ def Region(self):
13376
+ """实例地域。
13377
+ :rtype: str
13378
+ """
13379
+ return self._Region
13380
+
13381
+ @Region.setter
13382
+ def Region(self, Region):
13383
+ self._Region = Region
13384
+
13385
+ @property
13386
+ def UniqSubnetId(self):
13387
+ """实例子网统一ID,对于redis为空字符串。
13388
+ :rtype: str
13389
+ """
13390
+ return self._UniqSubnetId
12797
13391
 
12798
- @Vport.setter
12799
- def Vport(self, Vport):
12800
- self._Vport = Vport
13392
+ @UniqSubnetId.setter
13393
+ def UniqSubnetId(self, UniqSubnetId):
13394
+ self._UniqSubnetId = UniqSubnetId
12801
13395
 
12802
13396
  @property
12803
- def Product(self):
12804
- """实例产品。
13397
+ def UniqVpcId(self):
13398
+ """实例私有网络统一ID,对于redis为空字符串。
12805
13399
  :rtype: str
12806
13400
  """
12807
- return self._Product
13401
+ return self._UniqVpcId
12808
13402
 
12809
- @Product.setter
12810
- def Product(self, Product):
12811
- self._Product = Product
13403
+ @UniqVpcId.setter
13404
+ def UniqVpcId(self, UniqVpcId):
13405
+ self._UniqVpcId = UniqVpcId
12812
13406
 
12813
13407
  @property
12814
- def EngineVersion(self):
12815
- """实例引擎版本。
12816
- :rtype: str
13408
+ def Volume(self):
13409
+ """实例磁盘容量,对于Redis为0。
13410
+ :rtype: int
12817
13411
  """
12818
- return self._EngineVersion
13412
+ return self._Volume
12819
13413
 
12820
- @EngineVersion.setter
12821
- def EngineVersion(self, EngineVersion):
12822
- self._EngineVersion = EngineVersion
13414
+ @Volume.setter
13415
+ def Volume(self, Volume):
13416
+ self._Volume = Volume
12823
13417
 
12824
13418
 
12825
13419
  def _deserialize(self, params):
@@ -12829,6 +13423,17 @@ class InstanceBasicInfo(AbstractModel):
12829
13423
  self._Vport = params.get("Vport")
12830
13424
  self._Product = params.get("Product")
12831
13425
  self._EngineVersion = params.get("EngineVersion")
13426
+ self._Cpu = params.get("Cpu")
13427
+ self._DeployMode = params.get("DeployMode")
13428
+ if params.get("InstanceConf") is not None:
13429
+ self._InstanceConf = RedisInstanceConf()
13430
+ self._InstanceConf._deserialize(params.get("InstanceConf"))
13431
+ self._IsSupported = params.get("IsSupported")
13432
+ self._Memory = params.get("Memory")
13433
+ self._Region = params.get("Region")
13434
+ self._UniqSubnetId = params.get("UniqSubnetId")
13435
+ self._UniqVpcId = params.get("UniqVpcId")
13436
+ self._Volume = params.get("Volume")
12832
13437
  memeber_set = set(params.keys())
12833
13438
  for name, value in vars(self).items():
12834
13439
  property_name = name[1:]
@@ -15923,6 +16528,72 @@ class RedisCmdInfo(AbstractModel):
15923
16528
 
15924
16529
 
15925
16530
 
16531
+ class RedisInstanceConf(AbstractModel):
16532
+ """Redis实例内存配置参数
16533
+
16534
+ """
16535
+
16536
+ def __init__(self):
16537
+ r"""
16538
+ :param _ReplicasNum: 副本数量
16539
+ :type ReplicasNum: str
16540
+ :param _ShardNum: 分片数量
16541
+ :type ShardNum: str
16542
+ :param _ShardSize: 分片内存大小,单位MB
16543
+ :type ShardSize: str
16544
+ """
16545
+ self._ReplicasNum = None
16546
+ self._ShardNum = None
16547
+ self._ShardSize = None
16548
+
16549
+ @property
16550
+ def ReplicasNum(self):
16551
+ """副本数量
16552
+ :rtype: str
16553
+ """
16554
+ return self._ReplicasNum
16555
+
16556
+ @ReplicasNum.setter
16557
+ def ReplicasNum(self, ReplicasNum):
16558
+ self._ReplicasNum = ReplicasNum
16559
+
16560
+ @property
16561
+ def ShardNum(self):
16562
+ """分片数量
16563
+ :rtype: str
16564
+ """
16565
+ return self._ShardNum
16566
+
16567
+ @ShardNum.setter
16568
+ def ShardNum(self, ShardNum):
16569
+ self._ShardNum = ShardNum
16570
+
16571
+ @property
16572
+ def ShardSize(self):
16573
+ """分片内存大小,单位MB
16574
+ :rtype: str
16575
+ """
16576
+ return self._ShardSize
16577
+
16578
+ @ShardSize.setter
16579
+ def ShardSize(self, ShardSize):
16580
+ self._ShardSize = ShardSize
16581
+
16582
+
16583
+ def _deserialize(self, params):
16584
+ self._ReplicasNum = params.get("ReplicasNum")
16585
+ self._ShardNum = params.get("ShardNum")
16586
+ self._ShardSize = params.get("ShardSize")
16587
+ memeber_set = set(params.keys())
16588
+ for name, value in vars(self).items():
16589
+ property_name = name[1:]
16590
+ if property_name in memeber_set:
16591
+ memeber_set.remove(property_name)
16592
+ if len(memeber_set) > 0:
16593
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16594
+
16595
+
16596
+
15926
16597
  class RedisKeySpaceData(AbstractModel):
15927
16598
  """redis key空间信息。
15928
16599
 
@@ -17025,6 +17696,147 @@ class SessionItem(AbstractModel):
17025
17696
 
17026
17697
 
17027
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
+
17028
17840
  class SlowLogHost(AbstractModel):
17029
17841
  """慢日志来源地址详情。
17030
17842
 
@@ -17709,6 +18521,87 @@ class SlowLogUser(AbstractModel):
17709
18521
 
17710
18522
 
17711
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
+
17712
18605
  class StatDimension(AbstractModel):
17713
18606
  """会话统计的维度信息,可以多个维度
17714
18607