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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user