feat: supporting expressions to query metrics data (#270)

This commit is contained in:
Fine0830
2023-06-04 14:09:36 +08:00
committed by GitHub
parent ec67b4148c
commit dc22f8da6e
22 changed files with 923 additions and 105 deletions

View File

@@ -28,11 +28,14 @@ export interface LayoutConfig {
w: number;
h: number;
i: string;
type: string;
metricMode?: string;
widget?: WidgetConfig;
graph?: GraphConfig;
metrics?: string[];
type: string;
expressions?: string[];
metricTypes?: string[];
typesOfMQE?: string[];
children?: { name: string; children: LayoutConfig[] }[];
activedTabIndex?: number;
metricConfig?: MetricConfigOpt[];
@@ -41,6 +44,8 @@ export interface LayoutConfig {
eventAssociate?: boolean;
filters?: Filters;
relatedTrace?: RelatedTrace;
subExpressions?: string[];
subTypesOfMQE?: string[];
}
export type RelatedTrace = {
duration: DurationTime;

View File

@@ -21,6 +21,7 @@ export type Service = {
layers?: string[];
normal?: boolean;
group?: string;
merge?: string;
};
export type Instance = {
@@ -30,12 +31,14 @@ export type Instance = {
instanceUUID?: string;
attributes?: { name: string; value: string }[];
id?: string;
merge?: boolean;
};
export type Endpoint = {
id?: string;
label: string;
value: string;
merge?: string;
};
export type Service = {