AlertingNG/SSE: Datasource UID and UID/ID only (drop name) (#33039)
SSE still will support ID until dashboard/frontend always requests UID update *.http examples Co-authored-by: gotjosh <josue@grafana.com>
This commit is contained in:
@@ -91,7 +91,7 @@ func TestAlertRuleCRUD(t *testing.T) {
|
||||
To: ngmodels.Duration(time.Duration(3) * time.Hour),
|
||||
},
|
||||
Model: json.RawMessage(`{
|
||||
"datasource": "__expr__",
|
||||
"datasourceUid": "-100",
|
||||
"type": "math",
|
||||
"expression": "2 + 3 > 1"
|
||||
}`),
|
||||
@@ -112,7 +112,7 @@ func TestAlertRuleCRUD(t *testing.T) {
|
||||
To: ngmodels.Duration(time.Duration(3) * time.Hour),
|
||||
},
|
||||
Model: json.RawMessage(`{
|
||||
"datasource": "__expr__",
|
||||
"datasourceUid": "-100",
|
||||
"type": "math",
|
||||
"expression": "2 + 3 > 1"
|
||||
}`),
|
||||
@@ -180,7 +180,6 @@ func TestAlertRuleCRUD(t *testing.T) {
|
||||
"to":10800
|
||||
},
|
||||
"model":{
|
||||
"datasource":"__expr__",
|
||||
"datasourceUid":"-100",
|
||||
"expression":"2 + 3 \u003e 1",
|
||||
"intervalMs":1000,
|
||||
@@ -216,7 +215,6 @@ func TestAlertRuleCRUD(t *testing.T) {
|
||||
"to":10800
|
||||
},
|
||||
"model":{
|
||||
"datasource":"__expr__",
|
||||
"datasourceUid":"-100",
|
||||
"expression":"2 + 3 \u003e 1",
|
||||
"intervalMs":1000,
|
||||
|
||||
Reference in New Issue
Block a user