mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 14:22:48 +08:00

* added packages reference menu item. * removed the draft flag. * Updated docs by running script.
46 lines
1.2 KiB
Markdown
46 lines
1.2 KiB
Markdown
+++
|
|
# -----------------------------------------------------------------------
|
|
# Do not edit this file. It is automatically generated by API Documenter.
|
|
# -----------------------------------------------------------------------
|
|
title = "DataSourceConstructor"
|
|
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
|
type = "docs"
|
|
+++
|
|
|
|
## DataSourceConstructor interface
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
export interface DataSourceConstructor<DSType extends DataSourceApi<TQuery, TOptions>, TQuery extends DataQuery = DataQuery, TOptions extends DataSourceJsonData = DataSourceJsonData>
|
|
```
|
|
<b>Import</b>
|
|
|
|
```typescript
|
|
import { DataSourceConstructor } from '@grafana/data';
|
|
```
|
|
<b>Methods</b>
|
|
|
|
| Method | Description |
|
|
| --- | --- |
|
|
| [new(instanceSettings, args)](#new-instancesettingsargs) | |
|
|
|
|
### new(instanceSettings, args)
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
new (instanceSettings: DataSourceInstanceSettings<TOptions>, ...args: any[]): DSType;
|
|
```
|
|
<b>Parameters</b>
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| instanceSettings | <code>DataSourceInstanceSettings<TOptions></code> | |
|
|
| args | <code>any[]</code> | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
`DSType`
|
|
|