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