|
|
@@ -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[];
|