doc: add granularity argument for measure retrieval
Change-Id: I8312efa7a7cf1e519cbc73eed6aa2f814c354cf3 Related-Bug: #1512740
This commit is contained in:
parent
1b3025bf1c
commit
1dbd7763a0
|
@ -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
|
||||
==============
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue