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.
|
|
|
import { DataQuery, DataSourceRef, DataSourceSettings, PanelModel } from "@grafana/data";
|
|
|
|
|
|
|
|
export interface PanelOptions {}
|
|
|
|
|
|
|
|
export type TaskTableRowConfig = {
|
|
|
|
timestamp: number;
|
|
|
|
// TODO: rename user to username
|
|
|
|
user: string;
|
|
|
|
datasourceRef: DataSourceRef;
|
|
|
|
rowsCount: number;
|
|
|
|
progress: number;
|
|
|
|
status: string;
|
|
|
|
downloadLink: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type QueryTableRowConfig = Omit<DataQuery, 'datasource'> & {
|
|
|
|
selected: boolean;
|
|
|
|
panel: PanelModel;
|
|
|
|
datasource: DataSourceSettings;
|
|
|
|
};
|
|
|
|
|
|
|
|
export enum DatasourceType {
|
|
|
|
INFLUXDB = 'influxdb',
|
|
|
|
GRAPHITE = 'graphite',
|
|
|
|
PROMETHEUS = 'prometheus',
|
|
|
|
POSTGRES = 'postgres',
|
|
|
|
ELASTICSEARCH = 'elasticsearch',
|
|
|
|
MYSQL = 'mysql',
|
|
|
|
}
|