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 @@