You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
397 B

import { Datasource, DatasourceQuery } from '../../connectors';
import { AxiosResponse } from 'axios';
export abstract class QueryService {
constructor(protected _datasource: Datasource) { }
// TODO: we don't need `apiKey` here, we need some abstract auth config for both Direct and Grafana queries
abstract query(query: DatasourceQuery, apiKey?: string): Promise<AxiosResponse<any>>;
}