doc: add granularity argument for measure retrieval

Change-Id: I8312efa7a7cf1e519cbc73eed6aa2f814c354cf3
Related-Bug: #1512740
This commit is contained in:
Julien Danjou 2016-01-11 11:17:08 +01:00
parent 1b3025bf1c
commit 1dbd7763a0
2 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,12 @@ method. It is possible to request for any other method by specifying the
The list of aggregation method available is: *mean*, *sum*, *last*, *max*,
*min*, *std*, *median*, *first*, *count* and *Npct* (with 0 < N < 100).
It's possible to provide the `granularity` argument to specify the granularity
to retrieve, rather than all the granularities available:
{{ scenarios['get-measures-granularity']['doc'] }}
Archive Policy
==============

View File

@ -151,6 +151,9 @@
- name: get-measures-max
request: GET /v1/metric/{{ scenarios['create-metric']['response'].json['id'] }}/measures?aggregation=max HTTP/1.1
- name: get-measures-granularity
request: GET /v1/metric/{{ scenarios['create-metric']['response'].json['id'] }}/measures?granularity=1 HTTP/1.1
- name: create-resource-generic
request: |
POST /v1/resource/generic HTTP/1.1