mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
* AlertingNG: base API implementation * Pass the interface instead of the base impl * Ruler mock draft (WIP) * Update alerting-api dependency * Improve mock implementation
30 lines
634 B
JSON
30 lines
634 B
JSON
{
|
|
"name": "group42",
|
|
"interval": "10s",
|
|
"rules": [
|
|
{
|
|
"expr": "",
|
|
"grafana_alert": {
|
|
"title": "something completely different",
|
|
"condition": "A",
|
|
"data": [
|
|
{
|
|
"refId": "A",
|
|
"queryType": "",
|
|
"relativeTimeRange": {
|
|
"from": 18000,
|
|
"to": 10800
|
|
},
|
|
"model": {
|
|
"datasource": "__expr__",
|
|
"type": "math",
|
|
"expression": "2 + 2 > 1"
|
|
}
|
|
}
|
|
],
|
|
"no_data_state": "NoData",
|
|
"exec_err_state": "Alerting"
|
|
}
|
|
}
|
|
]
|
|
} |