Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
DataSourceConstructor interface
Signature
export interface DataSourceConstructor<DSType extends DataSourceApi<TQuery, TOptions>, TQuery extends DataQuery = DataQuery, TOptions extends DataSourceJsonData = DataSourceJsonData>
Import
import { DataSourceConstructor } from '@grafana/data';
Methods
new(instanceSettings, args)
Signature
new (instanceSettings: DataSourceInstanceSettings<TOptions>, ...args: any[]): DSType;
Parameters
Returns:
DSType