mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
docs: adds docs for pausing all alerts
This commit is contained in:
parent
400bd205a8
commit
ca940c2ae5
@ -133,6 +133,37 @@ Content-Type: application/json
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Pause all alerts
|
||||||
|
|
||||||
|
`POST /api/admin/pause-all-alerts`
|
||||||
|
|
||||||
|
```http
|
||||||
|
POST /api/admin/pause-all-alerts HTTP/1.1
|
||||||
|
Accept: application/json
|
||||||
|
Content-Type: application/json
|
||||||
|
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
|
||||||
|
|
||||||
|
{
|
||||||
|
"paused": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
JSON Body Schema:
|
||||||
|
|
||||||
|
- **paused** – Can be `true` or `false`. True to pause an alert. False to unpause an alert.
|
||||||
|
|
||||||
|
**Example Response**:
|
||||||
|
|
||||||
|
```http
|
||||||
|
HTTP/1.1 200
|
||||||
|
Content-Type: application/json
|
||||||
|
{
|
||||||
|
"state": "Paused",
|
||||||
|
"message": "alert paused",
|
||||||
|
"alertsAffected": 1
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Get alert notifications
|
## Get alert notifications
|
||||||
|
|
||||||
`GET /api/alert-notifications`
|
`GET /api/alert-notifications`
|
||||||
|
Loading…
Reference in New Issue
Block a user