tencentcloud-sdk-python-dbbrain 3.1.181__py2.py3-none-any.whl → 3.1.183__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 CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.181'
17
+ __version__ = '3.1.183'
@@ -1015,6 +1015,29 @@ class DbbrainClient(AbstractClient):
1015
1015
  raise TencentCloudSDKException(type(e).__name__, str(e))
1016
1016
 
1017
1017
 
1018
+ def DescribeDeadLockLogs(self, request):
1019
+ r"""查询实例的死锁事件列表
1020
+
1021
+ :param request: Request instance for DescribeDeadLockLogs.
1022
+ :type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDeadLockLogsRequest`
1023
+ :rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDeadLockLogsResponse`
1024
+
1025
+ """
1026
+ try:
1027
+ params = request._serialize()
1028
+ headers = request.headers
1029
+ body = self.call("DescribeDeadLockLogs", params, headers=headers)
1030
+ response = json.loads(body)
1031
+ model = models.DescribeDeadLockLogsResponse()
1032
+ model._deserialize(response["Response"])
1033
+ return model
1034
+ except Exception as e:
1035
+ if isinstance(e, TencentCloudSDKException):
1036
+ raise
1037
+ else:
1038
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1039
+
1040
+
1018
1041
  def DescribeDiagDBInstances(self, request):
1019
1042
  r"""获取实例信息列表。Region统一选择广州。
1020
1043
 
@@ -799,6 +799,24 @@ class DbbrainClient(AbstractClient):
799
799
 
800
800
  return await self.call_and_deserialize(**kwargs)
801
801
 
802
+ async def DescribeDeadLockLogs(
803
+ self,
804
+ request: models.DescribeDeadLockLogsRequest,
805
+ opts: Dict = None,
806
+ ) -> models.DescribeDeadLockLogsResponse:
807
+ """
808
+ 查询实例的死锁事件列表
809
+ """
810
+
811
+ kwargs = {}
812
+ kwargs["action"] = "DescribeDeadLockLogs"
813
+ kwargs["params"] = request._serialize()
814
+ kwargs["resp_cls"] = models.DescribeDeadLockLogsResponse
815
+ kwargs["headers"] = request.headers
816
+ kwargs["opts"] = opts or {}
817
+
818
+ return await self.call_and_deserialize(**kwargs)
819
+
802
820
  async def DescribeDiagDBInstances(
803
821
  self,
804
822
  request: models.DescribeDiagDBInstancesRequest,