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
This commit is contained in:
Sofia Papagiannaki
2021-03-11 21:28:00 +02:00
committed by GitHub
parent 3c76458015
commit fe628c6282
16 changed files with 857 additions and 9 deletions

View File

@@ -0,0 +1,30 @@
{
"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"
}
}
]
}