tencentcloud-sdk-python 3.0.1352__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/batch/v20170312/batch_client.py +0 -46
- tencentcloud/batch/v20170312/errorcodes.py +0 -9
- tencentcloud/batch/v20170312/models.py +21 -962
- tencentcloud/bi/v20220105/models.py +145 -0
- tencentcloud/cam/v20190116/errorcodes.py +3 -0
- tencentcloud/cam/v20190116/models.py +0 -82
- tencentcloud/cbs/v20170312/models.py +6 -14
- tencentcloud/cdn/v20180606/models.py +0 -46
- tencentcloud/chdfs/v20201112/models.py +2 -2
- tencentcloud/controlcenter/v20230110/models.py +0 -58
- tencentcloud/dbbrain/v20191016/dbbrain_client.py +23 -0
- tencentcloud/dbbrain/v20191016/models.py +375 -0
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
- tencentcloud/dbbrain/v20210527/models.py +701 -26
- tencentcloud/dcdb/v20180411/models.py +175 -2
- tencentcloud/dnspod/v20210323/models.py +0 -70
- tencentcloud/facefusion/v20220927/models.py +4 -2
- tencentcloud/gs/v20191118/models.py +16 -4
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +1 -1
- tencentcloud/iotexplorer/v20190423/models.py +49 -412
- tencentcloud/lkeap/v20240522/models.py +12 -6
- tencentcloud/mariadb/v20170312/models.py +151 -2
- tencentcloud/mps/v20190612/models.py +2 -2
- tencentcloud/mqtt/v20240516/models.py +8 -2
- tencentcloud/ocr/v20181119/errorcodes.py +0 -3
- tencentcloud/ocr/v20181119/models.py +0 -558
- tencentcloud/ocr/v20181119/ocr_client.py +0 -23
- tencentcloud/organization/v20210331/models.py +15 -0
- tencentcloud/sqlserver/v20180328/models.py +15 -0
- tencentcloud/tcb/v20180608/models.py +20 -0
- tencentcloud/teo/v20220106/teo_client.py +6 -2
- tencentcloud/tione/v20211111/models.py +35 -3
- tencentcloud/tse/v20201207/models.py +0 -34
- tencentcloud/vod/v20240718/models.py +0 -2
- tencentcloud/vpc/v20170312/models.py +300 -0
- tencentcloud/vpc/v20170312/vpc_client.py +26 -0
- tencentcloud/wedata/v20210820/models.py +17 -0
- {tencentcloud_sdk_python-3.0.1352.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1352.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/RECORD +43 -43
- {tencentcloud_sdk_python-3.0.1352.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1352.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1352.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/top_level.txt +0 -0
@@ -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
|
|