|
|
|
@ -6,7 +6,6 @@ import { |
|
|
|
|
DataQuery, |
|
|
|
|
DataSourceJsonData, |
|
|
|
|
ScopedVars, |
|
|
|
|
DataFrame, |
|
|
|
|
} from '@grafana/data'; |
|
|
|
|
import { Observable, from, of } from 'rxjs'; |
|
|
|
|
import { config } from '..'; |
|
|
|
@ -133,11 +132,6 @@ export class DataSourceWithBackend< |
|
|
|
|
*/ |
|
|
|
|
processResponse?(res: DataQueryResponse): Promise<DataQueryResponse>; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Optionally process the results for display |
|
|
|
|
*/ |
|
|
|
|
processDataFrameResult?(frame: DataFrame, idx: number): Promise<DataFrame>; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Override to skip executing a query |
|
|
|
|
* |
|
|
|
@ -146,7 +140,11 @@ export class DataSourceWithBackend< |
|
|
|
|
filterQuery?(query: TQuery): boolean; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Override to apply template variables |
|
|
|
|
* Override to apply template variables. The result is usually also `TQuery`, but sometimes this can |
|
|
|
|
* be used to modify the query structure before sending to the backend. |
|
|
|
|
* |
|
|
|
|
* NOTE: if you do modify the structure or use template variables, alerting queries may not work |
|
|
|
|
* as expected |
|
|
|
|
* |
|
|
|
|
* @virtual |
|
|
|
|
*/ |
|
|
|
|