From 941568839a26630f4d101c0314b6f2eb0badb1ab Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Wed, 11 Dec 2019 17:06:17 +0100 Subject: [PATCH] docs: update /api/v1/rules documentation (#6449) Signed-off-by: Simon Pasquier --- docs/querying/api.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/querying/api.md b/docs/querying/api.md index a2b1f19c7..5758482a5 100644 --- a/docs/querying/api.md +++ b/docs/querying/api.md @@ -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