lib/v20180724/client.rb in tencentcloud-sdk-monitor-3.0.464 vs lib/v20180724/client.rb in tencentcloud-sdk-monitor-3.0.465
- old
+ new
@@ -1599,9 +1599,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 列出 Prometheus 服务可用区
+
+ # @param request: Request instance for DescribePrometheusZones.
+ # @type request: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusZonesRequest`
+ # @rtype: :class:`Tencentcloud::monitor::V20180724::DescribePrometheusZonesResponse`
+ def DescribePrometheusZones(request)
+ body = send_request('DescribePrometheusZones', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribePrometheusZonesResponse.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
+
# 根据条件查询 Prometheus 预聚合规则
# @param request: Request instance for DescribeRecordingRules.
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeRecordingRulesRequest`
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeRecordingRulesResponse`
\ No newline at end of file