import { DataSourceApi, DataQueryRequest, DataQueryResponse, DataSourceInstanceSettings } from '@grafana/data'; import { DashboardQuery } from './types'; /** * This should not really be called */ export class DashboardDatasource extends DataSourceApi { constructor(instanceSettings: DataSourceInstanceSettings) { super(instanceSettings); } getCollapsedText(query: DashboardQuery) { return `Dashboard Reference: ${query.panelId}`; } query(options: DataQueryRequest): Promise { return Promise.reject('This should not be called directly'); } testDatasource() { return Promise.resolve({}); } }