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,44 @@
{
"apiVersion": 1,
"groups": [
{
"orgId": 1,
"name": "Group2",
"folder": "<dynamic>",
"interval": "1m",
"rules": [
{
"uid": "<dynamic>",
"title": "Rule3",
"condition": "A",
"data": [
{
"refId": "A",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "__expr__",
"model": {
"expression": "0/0",
"intervalMs": 1000,
"maxDataPoints": 43200,
"type": "math"
}
}
],
"noDataState": "NoData",
"execErrState": "Error",
"for": "5m",
"annotations": {
"annotation": "test-annotation"
},
"labels": {
"label1": "test-label"
},
"isPaused": false
}
]
}
]
}