mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 22:45:24 +00:00
update metric processor
This commit is contained in:
parent
371316c0b6
commit
b693348172
@ -46,6 +46,7 @@ export function useQueryProcessor(config: any) {
|
|||||||
"ServiceRelation",
|
"ServiceRelation",
|
||||||
"ServiceInstanceRelation",
|
"ServiceInstanceRelation",
|
||||||
"EndpointRelation",
|
"EndpointRelation",
|
||||||
|
"ProcessRelation",
|
||||||
].includes(dashboardStore.entity);
|
].includes(dashboardStore.entity);
|
||||||
if (isRelation && !selectorStore.currentDestService) {
|
if (isRelation && !selectorStore.currentDestService) {
|
||||||
return;
|
return;
|
||||||
@ -93,28 +94,40 @@ export function useQueryProcessor(config: any) {
|
|||||||
dashboardStore.entity === "All"
|
dashboardStore.entity === "All"
|
||||||
? undefined
|
? undefined
|
||||||
: selectorStore.currentService.normal,
|
: selectorStore.currentService.normal,
|
||||||
serviceInstanceName: dashboardStore.entity.includes("ServiceInstance")
|
serviceInstanceName: [
|
||||||
|
"ServiceInstance",
|
||||||
|
"ServiceInstanceRelation",
|
||||||
|
"ProcessRelation",
|
||||||
|
].includes(dashboardStore.entity)
|
||||||
? selectorStore.currentPod && selectorStore.currentPod.value
|
? selectorStore.currentPod && selectorStore.currentPod.value
|
||||||
: undefined,
|
: undefined,
|
||||||
endpointName: dashboardStore.entity.includes("Endpoint")
|
endpointName: dashboardStore.entity.includes("Endpoint")
|
||||||
? selectorStore.currentPod && selectorStore.currentPod.value
|
? selectorStore.currentPod && selectorStore.currentPod.value
|
||||||
: undefined,
|
: undefined,
|
||||||
|
processName: dashboardStore.entity.includes("Process")
|
||||||
|
? selectorStore.currentProcess && selectorStore.currentProcess.value
|
||||||
|
: undefined,
|
||||||
destNormal: isRelation
|
destNormal: isRelation
|
||||||
? selectorStore.currentDestService.normal
|
? selectorStore.currentDestService.normal
|
||||||
: undefined,
|
: undefined,
|
||||||
destServiceName: isRelation
|
destServiceName: isRelation
|
||||||
? selectorStore.currentDestService.value
|
? selectorStore.currentDestService.value
|
||||||
: undefined,
|
: undefined,
|
||||||
destServiceInstanceName:
|
destServiceInstanceName: [
|
||||||
dashboardStore.entity === "ServiceInstanceRelation"
|
"ServiceInstanceRelation",
|
||||||
? selectorStore.currentDestPod &&
|
"ProcessRelation",
|
||||||
selectorStore.currentDestPod.value
|
].includes(dashboardStore.entity)
|
||||||
: undefined,
|
? selectorStore.currentDestPod && selectorStore.currentDestPod.value
|
||||||
|
: undefined,
|
||||||
destEndpointName:
|
destEndpointName:
|
||||||
dashboardStore.entity === "EndpointRelation"
|
dashboardStore.entity === "EndpointRelation"
|
||||||
? selectorStore.currentDestPod &&
|
? selectorStore.currentDestPod &&
|
||||||
selectorStore.currentDestPod.value
|
selectorStore.currentDestPod.value
|
||||||
: undefined,
|
: undefined,
|
||||||
|
destProcessName: dashboardStore.entity.includes("ProcessRelation")
|
||||||
|
? selectorStore.currentDestProcess &&
|
||||||
|
selectorStore.currentDestProcess.value
|
||||||
|
: undefined,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user