Skip to content

Commit 59ed2b3

Browse files
committed
move metricsresponse fields to metricsFields
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 6af86a7 commit 59ed2b3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ui/src/config/section/infra/clusters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export default {
2626
permission: ['listClustersMetrics'],
2727
searchFilters: ['name', 'zoneid', 'podid', 'hypervisor'],
2828
columns: () => {
29-
const fields = ['name', 'allocationstate', 'clustertype', 'hypervisortype', 'hosts']
30-
const metricsFields = ['state', 'cpuused', 'cpumaxdeviation', 'cpuallocated', 'cputotal', 'memoryused', 'memorymaxdeviation', 'memoryallocated', 'memorytotal', 'drsimbalance']
29+
const fields = ['name', 'allocationstate', 'clustertype', 'hypervisortype']
30+
const metricsFields = ['state', 'hosts', 'cpuused', 'cpumaxdeviation', 'cpuallocated', 'cputotal', 'memoryused', 'memorymaxdeviation', 'memoryallocated', 'memorytotal', 'drsimbalance']
3131
if (store.getters.metrics) {
3232
fields.push(...metricsFields)
3333
}

ui/src/config/section/infra/hosts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export default {
3232
},
3333
params: { type: 'routing' },
3434
columns: () => {
35-
const fields = ['name', 'state', 'resourcestate', 'ipaddress', 'hypervisor', 'instances', 'powerstate', 'version']
36-
const metricsFields = ['cpunumber', 'cputotalghz', 'cpuusedghz', 'cpuallocatedghz', 'memorytotalgb', 'memoryusedgb', 'memoryallocatedgb', 'networkread', 'networkwrite']
35+
const fields = ['name', 'state', 'resourcestate', 'ipaddress', 'hypervisor', 'version']
36+
const metricsFields = ['instances', 'powerstate', 'cpunumber', 'cputotalghz', 'cpuusedghz', 'cpuallocatedghz', 'memorytotalgb', 'memoryusedgb', 'memoryallocatedgb', 'networkread', 'networkwrite']
3737
if (store.getters.metrics) {
3838
fields.push(...metricsFields)
3939
}

ui/src/config/section/infra/zones.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export default {
2626
permission: ['listZonesMetrics'],
2727
searchFilters: ['name', 'domainid', 'tags'],
2828
columns: () => {
29-
const fields = ['name', 'allocationstate', 'type', 'networktype', 'clusters']
30-
const metricsFields = ['cpuused', 'cpumaxdeviation', 'cpuallocated', 'cputotal', 'memoryused', 'memorymaxdeviation', 'memoryallocated', 'memorytotal']
29+
const fields = ['name', 'allocationstate', 'type', 'networktype']
30+
const metricsFields = ['clusters', 'cpuused', 'cpumaxdeviation', 'cpuallocated', 'cputotal', 'memoryused', 'memorymaxdeviation', 'memoryallocated', 'memorytotal']
3131
if (store.getters.metrics) {
3232
fields.push(...metricsFields)
3333
}

0 commit comments

Comments
 (0)