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. --> - + diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 49cf581d..65722791 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -388,5 +388,7 @@ const msg = { hierarchyNodeDashboard: "As dashboard for Hierarchy Graph Node", valueMappings: "Value Mappings", mappingTip: "Notice: The mapping key is a Regex string, e.g. ^([0-9])$", + valueDashboard: "Data Value Related Dashboard", + viewValueDashboard: "View Dashboard", }; export default msg; diff --git a/src/locales/lang/es.ts b/src/locales/lang/es.ts index 8cda2ce3..aff70878 100644 --- a/src/locales/lang/es.ts +++ b/src/locales/lang/es.ts @@ -388,5 +388,7 @@ const msg = { hierarchyNodeDashboard: "As dashboard for Hierarchy Graph Node", valueMappings: "Value Mappings", mappingTip: "Aviso: La clave de mapeo es una cadena Regex, p. ej. ^([0-9])$", + valueDashboard: "Data Value Related Dashboard", + viewValueDashboard: "View Dashboard", }; export default msg; diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 95389196..dca5b0bb 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -386,5 +386,7 @@ const msg = { hierarchyNodeDashboard: "作为层次图节点的dashboard", valueMappings: "值映射", mappingTip: "注意: 映射键是一个正则表达式字符串,比如 ^([0-9])$", + valueDashboard: "数据值相关的仪表板", + viewValueDashboard: "查看仪表板", }; export default msg; diff --git a/src/types/dashboard.d.ts b/src/types/dashboard.d.ts index ccf98861..fa72ce4a 100644 --- a/src/types/dashboard.d.ts +++ b/src/types/dashboard.d.ts @@ -46,6 +46,7 @@ export interface LayoutConfig { relatedTrace?: RelatedTrace; subExpressions?: string[]; subTypesOfMQE?: string[]; + valueRelatedDashboard?: string; } export type RelatedTrace = { duration: DurationTime; diff --git a/src/views/dashboard/Widget.vue b/src/views/dashboard/Widget.vue index 30f02385..36219761 100644 --- a/src/views/dashboard/Widget.vue +++ b/src/views/dashboard/Widget.vue @@ -38,6 +38,7 @@ limitations under the License. --> typesOfMQE: typesOfMQE || [], subExpressions: config.subExpressions || [], subTypesOfMQE: config.subTypesOfMQE || [], + valueRelatedDashboard: config.valueRelatedDashboard, }" :needQuery="true" /> diff --git a/src/views/dashboard/configuration/Widget.vue b/src/views/dashboard/configuration/Widget.vue index dc36d47f..3781b979 100644 --- a/src/views/dashboard/configuration/Widget.vue +++ b/src/views/dashboard/configuration/Widget.vue @@ -41,6 +41,7 @@ limitations under the License. --> typesOfMQE: dashboardStore.selectedGrid.typesOfMQE || [], subExpressions: dashboardStore.selectedGrid.subExpressions || [], subTypesOfMQE: dashboardStore.selectedGrid.subTypesOfMQE || [], + valueRelatedDashboard: dashboardStore.selectedGrid.valueRelatedDashboard, }" :needQuery="true" @expressionTips="getErrors" diff --git a/src/views/dashboard/configuration/widget/metric/Index.vue b/src/views/dashboard/configuration/widget/metric/Index.vue index 452d993e..f85bdd78 100644 --- a/src/views/dashboard/configuration/widget/metric/Index.vue +++ b/src/views/dashboard/configuration/widget/metric/Index.vue @@ -95,6 +95,20 @@ limitations under the License. --> {{ type.label }} + + {{ t("valueDashboard") }} + + + +