mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
use DataSourceWithBackend instead of DataSourceApi (#34194)
This commit is contained in:
@@ -15,14 +15,13 @@ import {
|
||||
takeWhile,
|
||||
tap,
|
||||
} from 'rxjs/operators';
|
||||
import { getBackendSrv, getGrafanaLiveSrv, toDataQueryResponse } from '@grafana/runtime';
|
||||
import { getBackendSrv, getGrafanaLiveSrv, toDataQueryResponse, DataSourceWithBackend } from '@grafana/runtime';
|
||||
import { RowContextOptions } from '@grafana/ui/src/components/Logs/LogRowContextProvider';
|
||||
import {
|
||||
DataFrame,
|
||||
DataQueryErrorType,
|
||||
DataQueryRequest,
|
||||
DataQueryResponse,
|
||||
DataSourceApi,
|
||||
DataSourceInstanceSettings,
|
||||
dateMath,
|
||||
LiveChannelEvent,
|
||||
@@ -88,7 +87,7 @@ const displayCustomError = (title: string, message: string) =>
|
||||
|
||||
export const MAX_ATTEMPTS = 5;
|
||||
|
||||
export class CloudWatchDatasource extends DataSourceApi<CloudWatchQuery, CloudWatchJsonData> {
|
||||
export class CloudWatchDatasource extends DataSourceWithBackend<CloudWatchQuery, CloudWatchJsonData> {
|
||||
proxyUrl: any;
|
||||
defaultRegion: any;
|
||||
datasourceName: string;
|
||||
|
||||
Reference in New Issue
Block a user