DataSourceAPI: Expose new method for filter applicability check (#106756)
* wip * wip non applicalbe filters * refactor getApplicableFilter to return a string[] * remove getApplicableFilters impl from prometheus
This commit is contained in:
@@ -306,6 +306,11 @@ abstract class DataSourceApi<
|
||||
*/
|
||||
metricFindQuery?(query: any, options?: LegacyMetricFindQueryOptions): Promise<MetricFindValue[]>;
|
||||
|
||||
/**
|
||||
* Verify adhoc filters applicability based on queries and current filters
|
||||
*/
|
||||
getApplicableFilters?(options?: DataSourceGetTagKeysOptions<TQuery>): Promise<string[]>;
|
||||
|
||||
/**
|
||||
* Get tag keys for adhoc filters
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user