Alerting: Add integration tests for Rule Export API (#75896)

This commit is contained in:
Yuri Tseretyan
2023-10-05 15:47:49 -04:00
committed by GitHub
parent 51499d7763
commit a66760f9f2
8 changed files with 788 additions and 215 deletions
@@ -0,0 +1,31 @@
{
"name": "Group2",
"interval": "1m",
"rules": [
{
"for" : "5m",
"labels" : {
"label1" : "test-label"
},
"annotations" : {
"annotation" : "test-annotation"
},
"grafana_alert": {
"title": "Rule3",
"condition": "A",
"data": [
{
"refId": "A",
"datasourceUid": "__expr__",
"model": {
"expression": "0/0",
"type": "math"
}
}
],
"no_data_state": "NoData",
"exec_err_state": "Error"
}
}
]
}