CN-1333 fix: 实体探索-实体列表以及下拉详情流量字段变更

This commit is contained in:
刘洪洪
2023-09-21 17:26:10 +08:00
parent df0e29c3ad
commit 375553aa42
2 changed files with 6 additions and 6 deletions

View File

@@ -114,12 +114,12 @@ export default {
let sentSeries
let receivedSeries
response.data.data.result.forEach(t => {
if (t.legend === 'bytesRate') {
if (t.legend === 'rate') {
this.entityData.max = t.aggregation.max
this.entityData.avg = t.aggregation.avg
this.entityData.p50 = t.aggregation.p50
this.entityData.p90 = t.aggregation.p90
} else if (t.legend === 'bytesSentRate') {
} else if (t.legend === 'sentRate') {
this.entityData.bytesSentRate = t.aggregation.avg
sentSeries = {
name: i18n.global.t('entities.sentThroughput'),
@@ -134,7 +134,7 @@ export default {
data: _.dropRight(t.values, 2).map(v => [Number(v[0]) * 1000, Number(v[1]), unitTypes.bps]),
showSymbol: false
}
} else if (t.legend === 'bytesReceivedRate') {
} else if (t.legend === 'receivedRate') {
this.entityData.bytesReceivedRate = t.aggregation.avg
receivedSeries = {
name: i18n.global.t('entities.receivedThroughput'),