API Reference@grafana/dataDataSourceConstructor

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

MethodDescription
new(instanceSettings, args)

new(instanceSettings, args)

Signature

new (instanceSettings: DataSourceInstanceSettings<TOptions>, ...args: any[]): DSType;

Parameters

ParameterTypeDescription
instanceSettingsDataSourceInstanceSettings<TOptions>
argsany[]

Returns:

DSType