fix: 修改dns--table字段

This commit is contained in:
chenjinsong
2022-03-07 16:15:55 +08:00
parent 65dd5e2879
commit 7aa10f9004
2 changed files with 2 additions and 2 deletions

View File

@@ -140,6 +140,7 @@ export const chartTableColumnMapping = {
domain: 'overall.domain', domain: 'overall.domain',
appName: 'overall.appName', appName: 'overall.appName',
queryRate: 'dns.queryRate', queryRate: 'dns.queryRate',
queryCount: 'dns.queryCount',
dnsLatency: 'dns.averageResolveLatency', dnsLatency: 'dns.averageResolveLatency',
responseFailRate: 'dns.responseFailureRate' responseFailRate: 'dns.responseFailureRate'
} }

View File

@@ -178,7 +178,7 @@ export default {
return 'T0' return 'T0'
} }
const eventStartTime = event.startTime const eventStartTime = event.startTime
const entityStartTime = this.basicInfo ? this.basicInfo.startTime : '' const entityStartTime = this.detection.startTime
if (!_.isEmpty(diffSeconds) && !_.isEmpty(eventStartTime) && !_.isEmpty(entityStartTime)) { if (!_.isEmpty(diffSeconds) && !_.isEmpty(eventStartTime) && !_.isEmpty(entityStartTime)) {
const suffix = unitConvert(diffSeconds, unitTypes.time, 's', null, 0).join('') const suffix = unitConvert(diffSeconds, unitTypes.time, 's', null, 0).join('')
@@ -196,7 +196,6 @@ export default {
getMillisecond, getMillisecond,
query () { query () {
Promise.all([this.queryBasic(), this.queryEvent()]).then(responses => { Promise.all([this.queryBasic(), this.queryEvent()]).then(responses => {
console.info(responses)
responses[0] && (this.basicInfo = responses[0]) responses[0] && (this.basicInfo = responses[0])
responses[1] && (this.events = responses[1]) responses[1] && (this.events = responses[1])
}) })