Skip to content

Commit

Permalink
zalando-zmonGH-74 Correct Cloudwatch check-command query_one example
Browse files Browse the repository at this point in the history
* Statistic is returned in dict, not Metric
* Add some more examples for percentile extended statistics
  • Loading branch information
john-coleman committed Jun 27, 2018
1 parent 44aeedf commit fa64d4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/user/check-ref/cloudwatch_wrapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit fa64d4b

Please sign in to comment.