Plugins: move PanelPluginMeta to grafana/ui (#16804)

This commit is contained in:
Ryan McKinley
2019-04-29 08:17:35 -07:00
committed by GitHub
parent 7146d576e6
commit 5c2d38126d
16 changed files with 36 additions and 40 deletions

View File

@@ -2,9 +2,28 @@ import { ComponentClass, ComponentType } from 'react';
import { LoadingState, SeriesData } from './data';
import { TimeRange } from './time';
import { ScopedVars, DataQueryRequest, DataQueryError, LegacyResponseData } from './datasource';
import { PluginMeta } from './plugin';
export type InterpolateFunction = (value: string, scopedVars?: ScopedVars, format?: string | Function) => string;
export interface PanelPluginMeta extends PluginMeta {
hideFromList?: boolean;
sort: number;
angularPlugin: AngularPanelPlugin | null;
vizPlugin: PanelPlugin | null;
hasBeenImported?: boolean;
// if length>0 the query tab will show up
// Before 6.2 this could be table and/or series, but 6.2+ supports both transparently
// so it will be deprecated soon
dataFormats?: PanelDataFormat[];
}
export enum PanelDataFormat {
Table = 'table',
TimeSeries = 'time_series',
}
export interface PanelData {
state: LoadingState;
series: SeriesData[];