def LookUpEvents(self, request): """用于对操作日志进行检索,便于用户进行查询相关的操作信息。 :param request: Request instance for LookUpEvents. :type request: :class:`tencentcloud.cloudaudit.v20190319.models.LookUpEventsRequest` :rtype: :class:`tencentcloud.cloudaudit.v20190319.models.LookUpEventsResponse` """ try: params = request._serialize() body = self.call("LookUpEvents", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.LookUpEventsResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def LookUpEvents(self, request): """This API is used to search for operation logs to help query relevant operation information. :param request: Request instance for LookUpEvents. :type request: :class:`tencentcloud.cloudaudit.v20190319.models.LookUpEventsRequest` :rtype: :class:`tencentcloud.cloudaudit.v20190319.models.LookUpEventsResponse` """ try: params = request._serialize() body = self.call("LookUpEvents", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.LookUpEventsResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)