Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

GetDataSourceListFilters interface

Signature

typescript
export interface GetDataSourceListFilters 

Import

typescript
import { GetDataSourceListFilters } from '@grafana/runtime';

Properties

PropertyTypeDescription
allbooleanBy default only data sources that can be queried will be returned. Meaning they have tracing, metrics, logs or annotations flag set in plugin.json file
annotationsbooleanOnly return data sources that support annotations
dashboardbooleanSet to true to return dashboard data source
metricsbooleanOnly return data sources that support metrics response
mixedbooleanInclude mixed deta source by setting this to true
pluginIdstringfilter list by plugin
tracingbooleanOnly return data sources that support tracing response
variablesbooleanSet to true to return data source variables

all property

By default only data sources that can be queried will be returned. Meaning they have tracing, metrics, logs or annotations flag set in plugin.json file

Signature

typescript
all?: boolean;

annotations property

Only return data sources that support annotations

Signature

typescript
annotations?: boolean;

dashboard property

Set to true to return dashboard data source

Signature

typescript
dashboard?: boolean;

metrics property

Only return data sources that support metrics response

Signature

typescript
metrics?: boolean;

mixed property

Include mixed deta source by setting this to true

Signature

typescript
mixed?: boolean;

pluginId property

filter list by plugin

Signature

typescript
pluginId?: string;

tracing property

Only return data sources that support tracing response

Signature

typescript
tracing?: boolean;

variables property

Set to true to return data source variables

Signature

typescript
variables?: boolean;