Referring to configuration.md, to have a Generic placeholders definition section (#7875)

Signed-off-by: Luke Chen <showuon@gmail.com>
This commit is contained in:
showuon 2020-09-01 16:37:09 +08:00 committed by GitHub
parent 252265fa81
commit dba729f6b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 8 deletions

View File

@ -46,21 +46,20 @@ The JSON response envelope format is as follows:
}
```
Input timestamps may be provided either in
Generic placeholders are defined as follows:
* `<rfc3339 | unix_timestamp>`: Input timestamps may be provided either in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format or as a Unix timestamp
in seconds, with optional decimal places for sub-second precision. Output
timestamps are always represented as Unix timestamps in seconds.
Names of query parameters that may be repeated end with `[]`.
`<series_selector>` placeholders refer to Prometheus [time series
* `<series_selector>`: Prometheus [time series
selectors](basics.md#time-series-selectors) like `http_requests_total` or
`http_requests_total{method=~"(GET|POST)"}` and need to be URL-encoded.
`<duration>` placeholders refer to [Prometheus duration strings](basics.md#time_durations).
* `<duration>`: [Prometheus duration strings](basics.md#time_durations).
For example, `5m` refers to a duration of 5 minutes.
* `<bool>`: boolean values (strings `true` and `false`).
`<bool>` placeholders refer to boolean values (strings `true` and `false`).
Note: Names of query parameters that may be repeated end with `[]`.
## Expression queries