DataSourceApi: add getCollapsedText(query) to DataSourceApi (#16482)

Add getQueryDisplayText() to DataSourceApi
This commit is contained in:
Ryan McKinley
2019-04-10 09:31:32 -07:00
committed by GitHub
parent 23d461af13
commit 5bc936d2da
6 changed files with 22 additions and 5 deletions

View File

@@ -106,6 +106,11 @@ export interface DataSourceApi<TQuery extends DataQuery = DataQuery> {
*/
getQueryHints?(query: TQuery, results: any[], ...rest: any): QueryHint[];
/**
* Convert a query to a simple text string
*/
getQueryDisplayText?(query: TQuery): string;
/**
* Set after constructor is called by Grafana
*/