mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
feat: Implement an association between widgets(line, bar, area graphs) with time (#115)
This commit is contained in:
16
src/types/dashboard.d.ts
vendored
16
src/types/dashboard.d.ts
vendored
@@ -36,6 +36,9 @@ export interface LayoutConfig {
|
||||
children?: { name: string; children: LayoutConfig[] }[];
|
||||
activedTabIndex?: number;
|
||||
metricConfig?: MetricConfigOpt[];
|
||||
id?: string;
|
||||
associate?: { widgetId: string }[];
|
||||
filters?: { dataIndex: number; sourceId: string };
|
||||
}
|
||||
|
||||
export type MetricConfigOpt = {
|
||||
@@ -48,6 +51,7 @@ export type MetricConfigOpt = {
|
||||
};
|
||||
|
||||
export interface WidgetConfig {
|
||||
name?: string;
|
||||
title?: string;
|
||||
tips?: string;
|
||||
}
|
||||
@@ -137,3 +141,15 @@ export interface TopologyConfig {
|
||||
depth?: number;
|
||||
showDepth?: boolean;
|
||||
}
|
||||
export type EventParams = {
|
||||
componentType: string;
|
||||
seriesType: string;
|
||||
seriesIndex: number;
|
||||
seriesName: string;
|
||||
name: string;
|
||||
dataIndex: number;
|
||||
data: Record<string, unknown>;
|
||||
dataType: string;
|
||||
value: number | number[];
|
||||
color: string;
|
||||
};
|
||||
|
Reference in New Issue
Block a user