fix: detection下拉metric请求参数更改
This commit is contained in:
@@ -96,6 +96,7 @@ import * as echarts from 'echarts'
|
|||||||
import { markRaw } from 'vue'
|
import { markRaw } from 'vue'
|
||||||
import { metricOption } from '@/views/detections/options/detectionOptions'
|
import { metricOption } from '@/views/detections/options/detectionOptions'
|
||||||
import { sortBy, reverseSortBy } from '@/utils/tools'
|
import { sortBy, reverseSortBy } from '@/utils/tools'
|
||||||
|
import _ from 'lodash'
|
||||||
export default {
|
export default {
|
||||||
name: 'DetectionPerformanceEventAppOverview',
|
name: 'DetectionPerformanceEventAppOverview',
|
||||||
props: {
|
props: {
|
||||||
@@ -190,7 +191,7 @@ export default {
|
|||||||
this.searchEndTime = _.min([nowTime, (this.detection.endTime + allTime / 2)])
|
this.searchEndTime = _.min([nowTime, (this.detection.endTime + allTime / 2)])
|
||||||
|
|
||||||
get(api.detection.performanceEvent.metric, {
|
get(api.detection.performanceEvent.metric, {
|
||||||
domain: this.detection.domain,
|
appName: this.detection.appName,
|
||||||
startTime: this.searchStartTime,
|
startTime: this.searchStartTime,
|
||||||
endTime: this.searchEndTime,
|
endTime: this.searchEndTime,
|
||||||
eventType: this.detection.eventType
|
eventType: this.detection.eventType
|
||||||
|
|||||||
@@ -89,6 +89,8 @@ import * as echarts from 'echarts'
|
|||||||
import { markRaw } from 'vue'
|
import { markRaw } from 'vue'
|
||||||
import { metricOption } from '@/views/detections/options/detectionOptions'
|
import { metricOption } from '@/views/detections/options/detectionOptions'
|
||||||
import { sortBy, reverseSortBy } from '@/utils/tools'
|
import { sortBy, reverseSortBy } from '@/utils/tools'
|
||||||
|
import _ from 'lodash'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DetectionPerformanceEventIpOverview',
|
name: 'DetectionPerformanceEventIpOverview',
|
||||||
props: {
|
props: {
|
||||||
@@ -184,9 +186,9 @@ export default {
|
|||||||
const nowTime = getSecond(new Date())
|
const nowTime = getSecond(new Date())
|
||||||
this.searchStartTime = this.detection.startTime - allTime / 2
|
this.searchStartTime = this.detection.startTime - allTime / 2
|
||||||
this.searchEndTime = _.min([nowTime, (this.detection.endTime + allTime / 2)])
|
this.searchEndTime = _.min([nowTime, (this.detection.endTime + allTime / 2)])
|
||||||
|
console.info(this.detection)
|
||||||
get(api.detection.performanceEvent.metric, {
|
get(api.detection.performanceEvent.metric, {
|
||||||
domain: this.detection.domain,
|
serverIp: this.detection.serverIp,
|
||||||
startTime: this.searchStartTime,
|
startTime: this.searchStartTime,
|
||||||
endTime: this.searchEndTime,
|
endTime: this.searchEndTime,
|
||||||
eventType: this.detection.eventType
|
eventType: this.detection.eventType
|
||||||
|
|||||||
Reference in New Issue
Block a user