grafana/pkg/services/ngalert/api/test-data/post-rulegroup-data.json
Sofia Papagiannaki fe628c6282
AlertingNG: base API implementation (#31824)
* AlertingNG: base API implementation

* Pass the interface instead of the base impl

* Ruler mock draft (WIP)

* Update alerting-api dependency

* Improve mock implementation
2021-03-11 21:28:00 +02:00

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"
}
}
]
}