CN-1333 fix: 实体探索-实体列表以及下拉详情流量字段变更
This commit is contained in:
@@ -107,12 +107,12 @@ export default {
|
||||
axios.get(this.trafficUrl, { params: this.getQueryParams() }).then(response => {
|
||||
if (response.status === 200 && response.data.data.result && response.data.data.result.length > 0) {
|
||||
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
|
||||
this.chartOptionSent = {
|
||||
...this.chartOption,
|
||||
@@ -132,7 +132,7 @@ export default {
|
||||
}
|
||||
]
|
||||
}
|
||||
} else if (t.legend === 'bytesReceivedRate') {
|
||||
} else if (t.legend === 'receivedRate') {
|
||||
this.entityData.bytesReceivedRate = t.aggregation.avg
|
||||
this.chartOptionReceived = {
|
||||
...this.chartOption,
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user