Alerting: Fix rule editor issues with Azure Monitor data source (#41317)

* properly set query type

* set default unit from data when found

* make AlertQueryRunner take into account ds.filterQuery

* fix tests

* feedback after pr

Co-authored-by: Peter Holmberg <peter.hlmbrg@gmail.com>
This commit is contained in:
Domas
2021-11-16 14:02:32 +01:00
committed by GitHub
co-authored by Peter Holmberg
parent ff421ef63b
commit c60933b49b
9 changed files with 89 additions and 21 deletions
@@ -170,15 +170,6 @@ class DataSourceWithBackend<
);
}
/**
* Override to skip executing a query
*
* @returns false if the query should be skipped
*
* @virtual
*/
filterQuery?(query: TQuery): boolean;
/**
* Apply template variables for explore
*/