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.
12 lines
397 B
12 lines
397 B
2 years ago
|
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>>;
|
||
|
}
|