You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1006 B
51 lines
1006 B
import { DataQuery, DataSourceSettings, PanelModel } from '@grafana/data'; |
|
|
|
export interface PanelOptions {} |
|
|
|
export enum DatasourceType { |
|
INFLUXDB = 'influxdb', |
|
GRAPHITE = 'graphite', |
|
PROMETHEUS = 'prometheus', |
|
POSTGRES = 'postgres', |
|
ELASTICSEARCH = 'elasticsearch', |
|
MYSQL = 'mysql', |
|
} |
|
|
|
export enum PanelStatus { |
|
LOADING = 'Loading', |
|
DATASOURCE_ERROR = 'Datasource Error', |
|
PERMISSION_ERROR = 'Permission Error', |
|
OK = 'Ok', |
|
} |
|
|
|
export enum ExportStatus { |
|
EXPORTING = 'exporting', |
|
FINISHED = 'finished', |
|
ERROR = 'error', |
|
} |
|
|
|
export type ExportProgress = { |
|
time: number; |
|
exportedRowsCount: number; |
|
progress: number; |
|
status: ExportStatus; |
|
errorMessage?: string; |
|
}; |
|
|
|
export type ExportTask = { |
|
username: string; |
|
queries: DashboardQuery[]; |
|
timeRange: { |
|
from: number; |
|
to: number; |
|
}; |
|
progress?: ExportProgress; |
|
id?: string; |
|
}; |
|
|
|
export type DashboardQuery = { |
|
selected: boolean; |
|
target: DataQuery; |
|
panel: PanelModel; |
|
datasource: DataSourceSettings; |
|
};
|
|
|