feat: add list components config

This commit is contained in:
Qiuxia Fan
2022-01-18 15:53:43 +08:00
parent db8338ffa5
commit 2e82d52e71
12 changed files with 318 additions and 37 deletions

View File

@@ -47,7 +47,14 @@ export interface StandardConfig {
seconds?: string;
}
export type GraphConfig = BarConfig | LineConfig | CardConfig | TableConfig;
export type GraphConfig =
| BarConfig
| LineConfig
| CardConfig
| TableConfig
| EndpointListConfig
| ServiceListConfig
| InstanceListConfig;
export interface BarConfig {
type?: string;
showBackground?: boolean;
@@ -81,3 +88,21 @@ export interface TopListConfig {
type?: string;
topN: number;
}
export interface ServiceListConfig {
type?: string;
dashboardName: string;
fontSize: number;
}
export interface InstanceListConfig {
type?: string;
dashboardName: string;
fontSize: number;
}
export interface EndpointListConfig {
type?: string;
dashboardName: string;
fontSize: number;
}