Alerting: app specific query editors for Loki and Prometheus (#34365)

* Adding simplified version of query editor based on app flag.

* cleaned up the absolute time range.

* changing placeholder text.

* updated snapshot.

* added some tests.

* adding loki query editor tests.

* updating snapshots.
This commit is contained in:
Marcus Andersson
2021-05-19 16:24:27 +02:00
committed by GitHub
parent f48708bb9e
commit 8ddf6de6e7
23 changed files with 333 additions and 68 deletions
+1
View File
@@ -7,6 +7,7 @@ export enum CoreApp {
Dashboard = 'dashboard',
Explore = 'explore',
Unknown = 'unknown',
CloudAlerting = 'cloud-alerting',
}
export interface AppRootProps<T = KeyValue> {
@@ -367,6 +367,7 @@ export interface QueryEditorProps<
exploreId?: any;
history?: HistoryItem[];
queries?: DataQuery[];
app?: CoreApp;
}
// TODO: not really needed but used as type in some data sources and in DataQueryRequest