feat: add config and create querys to get metric data

This commit is contained in:
Qiuxia Fan
2022-01-06 15:55:25 +08:00
parent e234361853
commit c282655369
15 changed files with 294 additions and 36 deletions

View File

@@ -22,16 +22,25 @@ export interface LayoutConfig {
i: string;
widget?: WidgetConfig;
graph?: GraphConfig;
standard?: StandardConfig;
metrics?: string[];
visualization?: string;
queryMetricType?: string;
}
export interface WidgetConfig {
title: string;
Metrics: string[];
unit: string;
tips: string;
sortOrder: string;
title?: string;
tips?: string;
}
export interface GraphConfig {
type: string;
showBackground?: boolean;
barWidth?: number;
}
export interface StandardConfig {
sortOrder?: string;
unit?: string;
max?: string;
min?: string;
}