|
|
|
@ -111,22 +111,27 @@ Example json body: |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"title": "My alert", |
|
|
|
|
"ruleId": 1, |
|
|
|
|
"ruleName": "Load peaking!", |
|
|
|
|
"ruleUrl": "http://url.to.grafana/db/dashboard/my_dashboard?panelId=2", |
|
|
|
|
"state": "alerting", |
|
|
|
|
"imageUrl": "http://s3.image.url", |
|
|
|
|
"message": "Load is peaking. Make sure the traffic is real and spin up more webfronts", |
|
|
|
|
"evalMatches": [ |
|
|
|
|
"dashboardId":1, |
|
|
|
|
"evalMatches":[ |
|
|
|
|
{ |
|
|
|
|
"metric": "requests", |
|
|
|
|
"tags": {}, |
|
|
|
|
"value": 122 |
|
|
|
|
"value":1, |
|
|
|
|
"metric":"Count", |
|
|
|
|
"tags":{} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
], |
|
|
|
|
"imageUrl":"https://grafana.com/assets/img/blog/mixed_styles.png", |
|
|
|
|
"message":"Notification Message", |
|
|
|
|
"orgId":1, |
|
|
|
|
"panelId":2, |
|
|
|
|
"ruleId":1, |
|
|
|
|
"ruleName":"Panel Title alert", |
|
|
|
|
"ruleUrl":"http://localhost:3000/d/hZ7BuVbWz/test-dashboard?fullscreen\u0026edit\u0026tab=alert\u0026panelId=2\u0026orgId=1", |
|
|
|
|
"state":"alerting", |
|
|
|
|
"tags":{ |
|
|
|
|
"tag name":"tag value" |
|
|
|
|
}, |
|
|
|
|
"title":"[Alerting] Panel Title alert" |
|
|
|
|
}``` |
|
|
|
|
|
|
|
|
|
- **state** - The possible values for alert state are: `ok`, `paused`, `alerting`, `pending`, `no_data`. |
|
|
|
|
|
|
|
|
|