+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "setDataSourceSrv" keywords = ["grafana","documentation","sdk","@grafana/runtime"] type = "docs" draft = true +++ ## setDataSourceSrv() function ### setDataSourceSrv() function Signature ```typescript export declare function setDataSourceSrv(instance: DataSourceSrv): void; ``` Import ```typescript import { setDataSourceSrv } from '@grafana/runtime'; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | instance | DataSourceSrv | | Returns: `void`