Chore: Expression engine to support relative time range (#57474)

* make TimeRange interface and add relative range
* make Execute methods support the current time
* update resample to support relative time range
* update DSNode to support relative time range
* update query service to create queries with absolute time
* make alerting evaluator create relative time ranges
This commit is contained in:
Yuriy Tseretyan
2022-10-26 16:13:58 -04:00
committed by GitHub
parent 596b4fecb0
commit 2d20c8db7b
15 changed files with 79 additions and 42 deletions
+4
View File
@@ -34,6 +34,7 @@ func TestServicebuildPipeLine(t *testing.T) {
DataSource: &datasources.DataSource{
Uid: "Fake",
},
TimeRange: AbsoluteTimeRange{},
},
},
},
@@ -144,6 +145,7 @@ func TestServicebuildPipeLine(t *testing.T) {
DataSource: &datasources.DataSource{
Uid: "Fake",
},
TimeRange: AbsoluteTimeRange{},
},
},
},
@@ -198,6 +200,7 @@ func TestServicebuildPipeLine(t *testing.T) {
DataSource: &datasources.DataSource{
Uid: "Fake",
},
TimeRange: AbsoluteTimeRange{},
},
},
},
@@ -221,6 +224,7 @@ func TestServicebuildPipeLine(t *testing.T) {
DataSource: &datasources.DataSource{
Uid: "Fake",
},
TimeRange: AbsoluteTimeRange{},
},
},
},