DataSourceConstructor interface

Signature

  1. export interface DataSourceConstructor<DSType extends DataSourceApi<TQuery, TOptions>, TQuery extends DataQuery = DataQuery, TOptions extends DataSourceJsonData = DataSourceJsonData>

Import

  1. import { DataSourceConstructor } from '@grafana/data';

Methods

MethodDescription
new(instanceSettings, args)

new(instanceSettings, args)

Signature

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

Parameters

ParameterTypeDescription
instanceSettingsDataSourceInstanceSettings<TOptions>
argsany[]

Returns:

DSType