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

DataSourcePluginComponents interface

Signature

typescript
export interface DataSourcePluginComponents<DSType extends DataSourceApi<TQuery, TOptions>, TQuery extends DataQuery = DataQuery, TOptions extends DataSourceJsonData = DataSourceJsonData, TSecureOptions = {}> 

Import

typescript
import { DataSourcePluginComponents } from '@grafana/data';

Properties

PropertyTypeDescription
AnnotationsQueryCtrlany
ConfigEditorComponentType<DataSourcePluginOptionsEditorProps<TOptions, TSecureOptions>>
ExploreLogsQueryFieldComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>
ExploreMetricsQueryFieldComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>
ExploreQueryFieldComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>
ExploreStartPageComponentType<ExploreStartPageProps>
MetadataInspectorComponentType<MetadataInspectorProps<DSType, TQuery, TOptions>>
QueryCtrlany
QueryEditorComponentType<QueryEditorProps<DSType, TQuery, TOptions>>
VariableQueryEditorany

AnnotationsQueryCtrl property

Signature

typescript
AnnotationsQueryCtrl?: any;

ConfigEditor property

Signature

typescript
ConfigEditor?: ComponentType<DataSourcePluginOptionsEditorProps<TOptions, TSecureOptions>>;

ExploreLogsQueryField property

Signature

typescript
ExploreLogsQueryField?: ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>;

ExploreMetricsQueryField property

Signature

typescript
ExploreMetricsQueryField?: ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>;

ExploreQueryField property

Signature

typescript
ExploreQueryField?: ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>;

ExploreStartPage property

Signature

typescript
ExploreStartPage?: ComponentType<ExploreStartPageProps>;

MetadataInspector property

Signature

typescript
MetadataInspector?: ComponentType<MetadataInspectorProps<DSType, TQuery, TOptions>>;

QueryCtrl property

Signature

typescript
QueryCtrl?: any;

QueryEditor property

Signature

typescript
QueryEditor?: ComponentType<QueryEditorProps<DSType, TQuery, TOptions>>;

VariableQueryEditor property

Signature

typescript
VariableQueryEditor?: any;