API Reference@grafana/datagetDataSourceRef

getDataSourceRef() function

getDataSourceRef() function

Convert instance settings to a reference

Signature

export declare function getDataSourceRef(ds: DataSourceInstanceSettings): DataSourceRef;

Import

import { getDataSourceRef } from '@grafana/data';

Parameters

Parameter Type Description
ds DataSourceInstanceSettings

Returns:

DataSourceRef