/// <summary>
        /// 本接口(DescribeSlowLogs)用于获取云数据库实例的慢查询日志。
        /// </summary>
        /// <param name="req"><see cref="DescribeSlowLogRequest"/></param>
        /// <returns><see cref="DescribeSlowLogResponse"/></returns>
        public DescribeSlowLogResponse DescribeSlowLogSync(DescribeSlowLogRequest req)
        {
            JsonResponseModel <DescribeSlowLogResponse> rsp = null;

            try
            {
                var strResp = this.InternalRequestSync(req, "DescribeSlowLog");
                rsp = JsonConvert.DeserializeObject <JsonResponseModel <DescribeSlowLogResponse> >(strResp);
            }
            catch (JsonSerializationException e)
            {
                throw new TencentCloudSDKException(e.Message);
            }
            return(rsp.Response);
        }
Пример #2
0
 /// <summary>
 ///  获取缓存Redis实例的慢查询日志
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public async Task <DescribeSlowLogResponse> DescribeSlowLog(DescribeSlowLogRequest request)
 {
     return(await new DescribeSlowLogExecutor().Client(this).Execute <DescribeSlowLogResponse, DescribeSlowLogResult, DescribeSlowLogRequest>(request).ConfigureAwait(false));
 }
Пример #3
0
 /// <summary>
 ///  获取缓存Redis实例的慢查询日志
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public DescribeSlowLogResponse DescribeSlowLog(DescribeSlowLogRequest request)
 {
     return(new DescribeSlowLogExecutor().Client(this).Execute <DescribeSlowLogResponse, DescribeSlowLogResult, DescribeSlowLogRequest>(request));
 }