From 14fa5d65b60570a77052793062eb5225de9132b5 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Tue, 5 Nov 2024 11:21:08 +0800 Subject: [PATCH] feat: View data value related dashboards in TopList widgets (#425) --- src/hooks/data.ts | 10 ++++ src/layout/components/NavBar.vue | 2 +- src/locales/lang/en.ts | 2 + src/locales/lang/es.ts | 2 + src/locales/lang/zh.ts | 2 + src/types/dashboard.d.ts | 1 + src/views/dashboard/Widget.vue | 1 + src/views/dashboard/configuration/Widget.vue | 1 + .../configuration/widget/metric/Index.vue | 47 +++++++++++++++++-- src/views/dashboard/controls/Widget.vue | 1 + src/views/dashboard/graphs/TopList.vue | 31 ++++++++++-- 11 files changed, 91 insertions(+), 9 deletions(-) diff --git a/src/hooks/data.ts b/src/hooks/data.ts index abaa263c..1ad8867e 100644 --- a/src/hooks/data.ts +++ b/src/hooks/data.ts @@ -57,6 +57,16 @@ export const RespFields: Indexable = { name: id value refId: traceID + owner { + scope + serviceID + serviceName + normal + serviceInstanceID + serviceInstanceName + endpointID + endpointName + } } } error diff --git a/src/layout/components/NavBar.vue b/src/layout/components/NavBar.vue index 292d4c5c..322abcba 100644 --- a/src/layout/components/NavBar.vue +++ b/src/layout/components/NavBar.vue @@ -61,7 +61,7 @@ limitations under the License. --> - +