From 46c8dbe94e599b4910f41e9b5eb095872f9358f6 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 6 Apr 2022 18:05:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20detection=E4=B8=8B=E6=8B=89metric?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../overview/DetectionPerformanceEventAppOverview.vue | 3 ++- .../overview/DetectionPerformanceEventIpOverview.vue | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue b/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue index f9e9e11c..ac590bec 100644 --- a/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue +++ b/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue @@ -96,6 +96,7 @@ import * as echarts from 'echarts' import { markRaw } from 'vue' import { metricOption } from '@/views/detections/options/detectionOptions' import { sortBy, reverseSortBy } from '@/utils/tools' +import _ from 'lodash' export default { name: 'DetectionPerformanceEventAppOverview', props: { @@ -190,7 +191,7 @@ export default { this.searchEndTime = _.min([nowTime, (this.detection.endTime + allTime / 2)]) get(api.detection.performanceEvent.metric, { - domain: this.detection.domain, + appName: this.detection.appName, startTime: this.searchStartTime, endTime: this.searchEndTime, eventType: this.detection.eventType diff --git a/src/views/detections/overview/DetectionPerformanceEventIpOverview.vue b/src/views/detections/overview/DetectionPerformanceEventIpOverview.vue index a4f22283..7c4c939d 100644 --- a/src/views/detections/overview/DetectionPerformanceEventIpOverview.vue +++ b/src/views/detections/overview/DetectionPerformanceEventIpOverview.vue @@ -89,6 +89,8 @@ import * as echarts from 'echarts' import { markRaw } from 'vue' import { metricOption } from '@/views/detections/options/detectionOptions' import { sortBy, reverseSortBy } from '@/utils/tools' +import _ from 'lodash' + export default { name: 'DetectionPerformanceEventIpOverview', props: { @@ -184,9 +186,9 @@ export default { const nowTime = getSecond(new Date()) this.searchStartTime = this.detection.startTime - allTime / 2 this.searchEndTime = _.min([nowTime, (this.detection.endTime + allTime / 2)]) - + console.info(this.detection) get(api.detection.performanceEvent.metric, { - domain: this.detection.domain, + serverIp: this.detection.serverIp, startTime: this.searchStartTime, endTime: this.searchEndTime, eventType: this.detection.eventType