Alerting/Expr: New SSE Request/QueryType, alerting move data source UID (#33282)

This commit is contained in:
Kyle Brandt
2021-04-23 16:52:32 +02:00
committed by GitHub
parent 659ea20c3c
commit 5e818146de
19 changed files with 179 additions and 248 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ func TestService(t *testing.T) {
return nil
})
queries := []backend.DataQuery{
queries := []Query{
{
RefID: "A",
JSON: json.RawMessage(`{ "datasource": "test", "datasourceId": 1, "orgId": 1, "intervalMs": 1000, "maxDataPoints": 1000 }`),
@@ -52,7 +52,7 @@ func TestService(t *testing.T) {
},
}
req := &backend.QueryDataRequest{Queries: queries}
req := &Request{Queries: queries}
pl, err := s.BuildPipeline(req)
require.NoError(t, err)