From fa64d4b3af756daa55cbaf8588da2292db5399f0 Mon Sep 17 00:00:00 2001 From: John Coleman Date: Wed, 27 Jun 2018 15:32:28 +0100 Subject: [PATCH] GH-74 Correct Cloudwatch check-command query_one example * Statistic is returned in dict, not Metric * Add some more examples for percentile extended statistics --- docs/user/check-ref/cloudwatch_wrapper.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/user/check-ref/cloudwatch_wrapper.rst b/docs/user/check-ref/cloudwatch_wrapper.rst index 718c271..f2ee4f7 100644 --- a/docs/user/check-ref/cloudwatch_wrapper.rst +++ b/docs/user/check-ref/cloudwatch_wrapper.rst @@ -61,11 +61,12 @@ Methods of Cloudwatch .. code-block:: python - cloudwatch().query_one({'LoadBalancer': 'app/my-alb/1234'}, 'TargetResponseTime', 'Average', 'AWS/ApplicationELB', extended_statistics=['p95', 'p99']) + cloudwatch().query_one({'LoadBalancer': 'app/my-alb/1234'}, 'TargetResponseTime', 'Average', 'AWS/ApplicationELB', extended_statistics=['p95', 'p99', 'p99.45']) { - 'TargetResponseTime': 0.224, + 'Average': 0.224, 'p95': 0.245, - 'p99': 0.300 + 'p99': 0.300, + 'p99.45': 0.500 } .. note::