+++
# -----------------------------------------------------------------------
# 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

<b>Signature</b>

```typescript
export declare function setDataSourceSrv(instance: DataSourceSrv): void;
```
<b>Import</b>

```typescript
import { setDataSourceSrv } from '@grafana/runtime';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  instance | <code>DataSourceSrv</code> |  |

<b>Returns:</b>

`void`

