lib/v20180724/client.rb in tencentcloud-sdk-monitor-1.0.262 vs lib/v20180724/client.rb in tencentcloud-sdk-monitor-1.0.263
- old
+ new
@@ -659,9 +659,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 获取条件模板列表
+
+ # @param request: Request instance for DescribeConditionsTemplateList.
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribeConditionsTemplateListRequest`
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeConditionsTemplateListResponse`
+ def DescribeConditionsTemplateList(request)
+ body = send_request('DescribeConditionsTemplateList', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeConditionsTemplateListResponse.new
+ model.deserialize(response['Response'])
+ model
+ else
+ code = response['Response']['Error']['Code']
+ message = response['Response']['Error']['Message']
+ reqid = response['Response']['RequestId']
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
+ end
+ rescue TencentCloud::Common::TencentCloudSDKException => e
+ raise e
+ rescue StandardError => e
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
+ end
+
# 云监控支持多种类型的监控,此接口列出支持的所有类型
# @param request: Request instance for DescribeMonitorTypes.
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeMonitorTypesRequest`
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeMonitorTypesResponse`
\ No newline at end of file