From cc367dd29cad54f39a06fcc777d0febe7fbd2033 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Wed, 21 Jun 2023 18:08:47 +0800 Subject: [PATCH 1/2] fix: add a link to explain the expression metric, add units in the continue profiling widget (#288) --- .../configuration/widget/metric/Index.vue | 28 +++++++++++++------ .../components/Policy.vue | 10 +++++-- src/views/dashboard/related/log/Header.vue | 4 +-- 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/src/views/dashboard/configuration/widget/metric/Index.vue b/src/views/dashboard/configuration/widget/metric/Index.vue index 9a6e486b..d7c34533 100644 --- a/src/views/dashboard/configuration/widget/metric/Index.vue +++ b/src/views/dashboard/configuration/widget/metric/Index.vue @@ -26,14 +26,21 @@ limitations under the License. --> />
{{ t("metrics") }}
- +
+ + +
{{ t("summary") }} {{ t("detail") }} @@ -641,4 +648,9 @@ limitations under the License. --> display: inline-block; width: 410px; } + + .link { + cursor: pointer; + color: #409eff; + } diff --git a/src/views/dashboard/related/continuous-profiling/components/Policy.vue b/src/views/dashboard/related/continuous-profiling/components/Policy.vue index 231cedc6..933b1c33 100644 --- a/src/views/dashboard/related/continuous-profiling/components/Policy.vue +++ b/src/views/dashboard/related/continuous-profiling/components/Policy.vue @@ -68,11 +68,17 @@ limitations under the License. -->
{{ t("count") }}
- +
+ + s +
{{ t("period") }}
- +
+ + s +
{{ t("uriRegex") }}
diff --git a/src/views/dashboard/related/log/Header.vue b/src/views/dashboard/related/log/Header.vue index eb3a6a47..3520802d 100644 --- a/src/views/dashboard/related/log/Header.vue +++ b/src/views/dashboard/related/log/Header.vue @@ -107,8 +107,8 @@ limitations under the License. --> @change="addLabels('excludingKeywordsOfContent')" /> - - + +
From 63db3fbc2e3843d38f9b5b6e4b8666066da4d517 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Sun, 25 Jun 2023 22:41:45 +0800 Subject: [PATCH 2/2] fix: update the title of instance list and notices in the continue profiling (#289) --- src/locales/lang/en.ts | 2 +- .../related/continuous-profiling/components/Policy.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 6bc4cacf..7dbf950c 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -399,7 +399,7 @@ const msg = { uriRegex: "URI Regex", uriList: "URI List", processes: "Processes", - monitorInstances: "Monitor Instances", + monitorInstances: "Monitoring Instances", processDashboards: "Process Dashboards", instanceDashboards: "Instance Dashboards", detailLabel: "Detail Label", diff --git a/src/views/dashboard/related/continuous-profiling/components/Policy.vue b/src/views/dashboard/related/continuous-profiling/components/Policy.vue index 933b1c33..09ecc35d 100644 --- a/src/views/dashboard/related/continuous-profiling/components/Policy.vue +++ b/src/views/dashboard/related/continuous-profiling/components/Policy.vue @@ -56,7 +56,7 @@ limitations under the License. -->
{{ t("threshold") }} - ({{ getNotice(item.type) }} ) + {{ getNotice(item.type) }}
HTTP_AVG_RESPONSE_TIME: "It is a response time in milliseconds", }; - return map[type]; + return map[type] ? `(${map[type]})` : ""; }