docs: update /api/v1/rules documentation (#6449)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2019-12-11 17:06:17 +01:00 committed by GitHub
parent b15dda9e07
commit 941568839a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -482,6 +482,9 @@ guarantees as the overarching API v1.
GET /api/v1/rules
```
URL query parameters:
- `type=alert|record`: return only the alerting rules (e.g. `type=alert`) or the recording rules (e.g. `type=record`). When the parameter is absent or empty, no filtering is done.
```json
$ curl http://localhost:9090/api/v1/rules