From b9cdb81bc625789f54097549cff5022f7baf4267 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Sun, 27 Mar 2022 20:52:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9E=E4=BD=93=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/constants.js | 6 +++ src/views/charts/PanelChart.vue | 4 +- .../DetectionPerformanceEventAppOverview.vue | 53 +++++++++---------- 3 files changed, 34 insertions(+), 29 deletions(-) diff --git a/src/utils/constants.js b/src/utils/constants.js index 78bc150d..0f1a87a2 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -192,6 +192,12 @@ export const dnsServerRole = { RTDNSM: 'RTDNSM' } +export const performanceMetricMapping = { + 'dns error': 'DNS Error Rate', + 'http error': 'HTTP Error Rate', + 'high dns response time': 'DNS Response Latency' +} + export const chartColor = ['#5370C6', '#90CC74', '#FAC858', '#EE6666', '#73BFDE', '#3BA172', '#FC8452', '#9960B4', '#E97CCC', '#FEA69E', '#0F8AB2', '#57CBAC', diff --git a/src/views/charts/PanelChart.vue b/src/views/charts/PanelChart.vue index fb1fecdd..0231cb34 100644 --- a/src/views/charts/PanelChart.vue +++ b/src/views/charts/PanelChart.vue @@ -251,9 +251,9 @@ export default { } }).finally(() => { setTimeout(() => { - if(!(isIpHostedDomain(this.chartInfo.type) || isAppRelatedDomain(this.chartInfo.type)) ){ + if (!(isIpHostedDomain(this.chartInfo.type) || isAppRelatedDomain(this.chartInfo.type))) { this.loading = false - }else if(!this.chartData || this.chartData.length === 0){ + } else if (!this.chartData || this.chartData.length === 0) { this.loading = false } }, 200) diff --git a/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue b/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue index 7f379a88..f9e9e11c 100644 --- a/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue +++ b/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue @@ -88,15 +88,14 @@