tencentcloud-sdk-python-dbbrain 3.1.109__tar.gz → 3.1.130__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 (22) hide show
  1. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/setup.py +1 -1
  3. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
  5. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +36 -0
  6. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/v20210527/errorcodes.py +21 -0
  7. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/v20210527/models.py +1122 -155
  8. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud_sdk_python_dbbrain.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_dbbrain-3.1.130/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_dbbrain-3.1.109/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/README.rst +0 -0
  12. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/__init__.py +0 -0
  14. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
  15. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +0 -0
  16. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/v20191016/dbbrain_client_async.py +0 -0
  17. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
  18. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/v20191016/models.py +0 -0
  19. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
  20. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_dbbrain-3.1.109 → tencentcloud_sdk_python_dbbrain-3.1.130}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dbbrain
3
- Version: 3.1.109
3
+ Version: 3.1.130
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<4.0.0,>=3.1.109
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.130
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -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.1.109,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.130,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Dbbrain SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.109'
17
+ __version__ = '3.1.130'
@@ -233,6 +233,29 @@ class DbbrainClient(AbstractClient):
233
233
  raise TencentCloudSDKException(type(e).__name__, str(e))
234
234
 
235
235
 
236
+ def CreateIgnoreDiagRecord(self, request):
237
+ r"""对实例的某个诊断项设置忽略或取消忽略状态。
238
+
239
+ :param request: Request instance for CreateIgnoreDiagRecord.
240
+ :type request: :class:`tencentcloud.dbbrain.v20210527.models.CreateIgnoreDiagRecordRequest`
241
+ :rtype: :class:`tencentcloud.dbbrain.v20210527.models.CreateIgnoreDiagRecordResponse`
242
+
243
+ """
244
+ try:
245
+ params = request._serialize()
246
+ headers = request.headers
247
+ body = self.call("CreateIgnoreDiagRecord", params, headers=headers)
248
+ response = json.loads(body)
249
+ model = models.CreateIgnoreDiagRecordResponse()
250
+ model._deserialize(response["Response"])
251
+ return model
252
+ except Exception as e:
253
+ if isinstance(e, TencentCloudSDKException):
254
+ raise
255
+ else:
256
+ raise TencentCloudSDKException(type(e).__name__, str(e))
257
+
258
+
236
259
  def CreateKillTask(self, request):
237
260
  r"""创建中断会话的任务。
238
261
 
@@ -670,6 +693,29 @@ class DbbrainClient(AbstractClient):
670
693
  raise TencentCloudSDKException(type(e).__name__, str(e))
671
694
 
672
695
 
696
+ def DescribeDBAuditLogTopSqls(self, request):
697
+ r"""按照Sql模板+schema的聚合方式,统计排序指定时间段内的top慢sql。
698
+
699
+ :param request: Request instance for DescribeDBAuditLogTopSqls.
700
+ :type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDBAuditLogTopSqlsRequest`
701
+ :rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDBAuditLogTopSqlsResponse`
702
+
703
+ """
704
+ try:
705
+ params = request._serialize()
706
+ headers = request.headers
707
+ body = self.call("DescribeDBAuditLogTopSqls", params, headers=headers)
708
+ response = json.loads(body)
709
+ model = models.DescribeDBAuditLogTopSqlsResponse()
710
+ model._deserialize(response["Response"])
711
+ return model
712
+ except Exception as e:
713
+ if isinstance(e, TencentCloudSDKException):
714
+ raise
715
+ else:
716
+ raise TencentCloudSDKException(type(e).__name__, str(e))
717
+
718
+
673
719
  def DescribeDBAutonomyAction(self, request):
674
720
  r"""自治中心-查询自治事件任务详情。
675
721
 
@@ -187,6 +187,24 @@ class DbbrainClient(AbstractClient):
187
187
 
188
188
  return await self.call_and_deserialize(**kwargs)
189
189
 
190
+ async def CreateIgnoreDiagRecord(
191
+ self,
192
+ request: models.CreateIgnoreDiagRecordRequest,
193
+ opts: Dict = None,
194
+ ) -> models.CreateIgnoreDiagRecordResponse:
195
+ """
196
+ 对实例的某个诊断项设置忽略或取消忽略状态。
197
+ """
198
+
199
+ kwargs = {}
200
+ kwargs["action"] = "CreateIgnoreDiagRecord"
201
+ kwargs["params"] = request._serialize()
202
+ kwargs["resp_cls"] = models.CreateIgnoreDiagRecordResponse
203
+ kwargs["headers"] = request.headers
204
+ kwargs["opts"] = opts or {}
205
+
206
+ return await self.call_and_deserialize(**kwargs)
207
+
190
208
  async def CreateKillTask(
191
209
  self,
192
210
  request: models.CreateKillTaskRequest,
@@ -529,6 +547,24 @@ class DbbrainClient(AbstractClient):
529
547
 
530
548
  return await self.call_and_deserialize(**kwargs)
531
549
 
550
+ async def DescribeDBAuditLogTopSqls(
551
+ self,
552
+ request: models.DescribeDBAuditLogTopSqlsRequest,
553
+ opts: Dict = None,
554
+ ) -> models.DescribeDBAuditLogTopSqlsResponse:
555
+ """
556
+ 按照Sql模板+schema的聚合方式,统计排序指定时间段内的top慢sql。
557
+ """
558
+
559
+ kwargs = {}
560
+ kwargs["action"] = "DescribeDBAuditLogTopSqls"
561
+ kwargs["params"] = request._serialize()
562
+ kwargs["resp_cls"] = models.DescribeDBAuditLogTopSqlsResponse
563
+ kwargs["headers"] = request.headers
564
+ kwargs["opts"] = opts or {}
565
+
566
+ return await self.call_and_deserialize(**kwargs)
567
+
532
568
  async def DescribeDBAutonomyAction(
533
569
  self,
534
570
  request: models.DescribeDBAutonomyActionRequest,
@@ -38,18 +38,36 @@ INTERNALERROR = 'InternalError'
38
38
  # 数据库操作失败
39
39
  INTERNALERROR_DBOPERATIONFAILED = 'InternalError.DbOperationFailed'
40
40
 
41
+ # InternalError.InternalError
42
+ INTERNALERROR_INTERNALERROR = 'InternalError.InternalError'
43
+
44
+ # 无效的过滤器
45
+ INVALIDFILTER = 'InvalidFilter'
46
+
41
47
  # 参数错误。
42
48
  INVALIDPARAMETER = 'InvalidParameter'
43
49
 
50
+ # InvalidParameter.InvalidParameter
51
+ INVALIDPARAMETER_INVALIDPARAMETER = 'InvalidParameter.InvalidParameter'
52
+
53
+ # 无效参数组合
54
+ INVALIDPARAMETERCOMBINATION = 'InvalidParameterCombination'
55
+
44
56
  # 参数取值错误。
45
57
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
46
58
 
59
+ # InvalidParameterValue.InvalidParameterValue
60
+ INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUE = 'InvalidParameterValue.InvalidParameterValue'
61
+
47
62
  # 超过配额限制。
48
63
  LIMITEXCEEDED = 'LimitExceeded'
49
64
 
50
65
  # 缺少参数错误。
51
66
  MISSINGPARAMETER = 'MissingParameter'
52
67
 
68
+ # MissingParameter.MissingParameter
69
+ MISSINGPARAMETER_MISSINGPARAMETER = 'MissingParameter.MissingParameter'
70
+
53
71
  # 操作被拒绝。
54
72
  OPERATIONDENIED = 'OperationDenied'
55
73
 
@@ -80,6 +98,9 @@ RESOURCESSOLDOUT = 'ResourcesSoldOut'
80
98
  # 未授权操作。
81
99
  UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
82
100
 
101
+ # UnauthorizedOperation.UnauthorizedOperation
102
+ UNAUTHORIZEDOPERATION_UNAUTHORIZEDOPERATION = 'UnauthorizedOperation.UnauthorizedOperation'
103
+
83
104
  # 未知参数错误。
84
105
  UNKNOWNPARAMETER = 'UnknownParameter'
85
106