diff --git a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts index 96b9a4ff2af..270772f0e2a 100644 --- a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts +++ b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts @@ -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; - /** - * Optionally process the results for display - */ - processDataFrameResult?(frame: DataFrame, idx: number): Promise; - /** * 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 */