1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-13 13:17:39 +03:00

F #5162: Update Host and VMs datatables columns (#728)

This commit is contained in:
Frederick Borges 2021-01-29 14:46:54 +01:00 committed by GitHub
parent 92c77fb858
commit 9e6a6f8477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 139 additions and 194 deletions

View File

@ -367,16 +367,14 @@ tabs:
- 3 # Owner
- 4 # Group
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
- 14 # Search data
- 15 # Clock leases
- 6 # Host
- 7 # IPs
#- 8 # Start Time
- 9 # VNC
#- 10 # Hidden Template
#- 11 # Labels
#- 12 # Search data
- 13 # Clock leases
actions:
VM.refresh: true
VM.create_dialog: true
@ -560,16 +558,13 @@ tabs:
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
#- 14 # Search data
- 5 # Allocated CPU
- 6 # Allocated MEM
- 7 # Status
#- 8 # IM MAD
#- 9 # VM MAD
#- 10 # Labels
#- 11 # Search data
actions:
Host.refresh: true
Host.create_dialog: true

View File

@ -366,16 +366,14 @@ tabs:
#- 3 # Owner
- 4 # Group
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
#- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
- 14 # Search data
#- 15 # Clock leases
#- 6 # Host
- 7 # IPs
#- 8 # Start Time
- 9 # VNC
#- 10 # Hidden Template
#- 11 # Labels
#- 12 # Search data
#- 13 # Clock leases
actions:
VM.refresh: true
VM.create_dialog: true
@ -560,16 +558,13 @@ tabs:
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
#- 14 # Search data
- 5 # Allocated CPU
- 6 # Allocated MEM
- 7 # Status
#- 8 # IM MAD
#- 9 # VM MAD
#- 10 # Labels
#- 11 # Search data
actions:
Host.refresh: true
Host.create_dialog: true

View File

@ -359,16 +359,14 @@ tabs:
- 3 # Group
- 4 # Name
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
- 14 # Search data
#- 15 # Clock leases
- 6 # Host
- 7 # IPs
#- 8 # Start Time
- 9 # VNC
#- 10 # Hidden Template
#- 11 # Labels
#- 12 # Search data
#- 13 # Clock leases
actions:
VM.refresh: true
VM.create_dialog: true
@ -553,16 +551,13 @@ tabs:
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
#- 14 # Search data
- 5 # Allocated CPU
- 6 # Allocated MEM
- 7 # Status
#- 8 # IM MAD
#- 9 # VM MAD
#- 10 # Labels
#- 11 # Search data
actions:
Host.refresh: true
Host.create_dialog: true

View File

@ -367,16 +367,14 @@ tabs:
- 3 # Owner
- 4 # Group
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
#- 14 # Search data
- 15 # Clock leases
- 6 # Host
- 7 # IPs
#- 8 # Start Time
- 9 # VNC
#- 10 # Hidden Template
#- 11 # Labels
#- 12 # Search data
- 13 # Clock leases
actions:
VM.refresh: true
VM.create_dialog: true
@ -562,16 +560,13 @@ tabs:
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
#- 14 # Search data
- 5 # Allocated CPU
- 6 # Allocated MEM
- 7 # Status
#- 8 # IM MAD
#- 9 # VM MAD
#- 10 # Labels
#- 11 # Search data
actions:
Host.refresh: true
Host.create_dialog: true

View File

@ -366,16 +366,14 @@ tabs:
#- 3 # Owner
- 4 # Group
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
#- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
#- 14 # Search data
#- 15 # Clock leases
#- 6 # Host
- 7 # IPs
#- 8 # Start Time
- 9 # VNC
#- 10 # Hidden Template
#- 11 # Labels
#- 12 # Search data
#- 13 # Clock leases
actions:
VM.refresh: true
VM.create_dialog: true
@ -561,16 +559,13 @@ tabs:
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
#- 14 # Search data
- 5 # Allocated CPU
- 6 # Allocated MEM
- 7 # Status
#- 8 # IM MAD
#- 9 # VM MAD
#- 10 # Labels
#- 11 # Search data
actions:
Host.refresh: true
Host.create_dialog: true

View File

@ -359,16 +359,14 @@ tabs:
- 3 # Group
- 4 # Name
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
#- 14 # Search data
#- 15 # Clock leases
- 6 # Host
- 7 # IPs
#- 8 # Start Time
- 9 # VNC
#- 10 # Hidden Template
#- 11 # Labels
#- 12 # Search data
#- 13 # Clock leases
actions:
VM.refresh: true
VM.create_dialog: true
@ -554,16 +552,13 @@ tabs:
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
#- 14 # Search data
- 5 # Allocated CPU
- 6 # Allocated MEM
- 7 # Status
#- 8 # IM MAD
#- 9 # VM MAD
#- 10 # Labels
#- 11 # Search data
actions:
Host.refresh: true
Host.create_dialog: true

View File

@ -365,16 +365,14 @@ tabs:
- 3 # Owner
- 4 # Group
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
#- 14 # Search data
#- 15 # Clock leases
- 6 # Host
- 7 # IPs
#- 8 # Start Time
- 9 # VNC
#- 10 # Hidden Template
#- 11 # Labels
#- 12 # Search data
#- 13 # Clock leases
actions:
VM.refresh: true
VM.create_dialog: true
@ -560,16 +558,13 @@ tabs:
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
#- 14 # Search data
- 5 # Allocated CPU
- 6 # Allocated MEM
- 7 # Status
#- 8 # IM MAD
#- 9 # VM MAD
#- 10 # Labels
#- 11 # Search data
actions:
Host.refresh: true
Host.create_dialog: true

View File

@ -366,16 +366,14 @@ tabs:
#- 3 # Owner
- 4 # Group
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
#- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
#- 14 # Search data
#- 15 # Clock leases
#- 6 # Host
- 7 # IPs
#- 8 # Start Time
- 9 # VNC
#- 10 # Hidden Template
#- 11 # Labels
#- 12 # Search data
#- 13 # Clock leases
actions:
VM.refresh: true
VM.create_dialog: true
@ -561,16 +559,13 @@ tabs:
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
#- 14 # Search data
- 5 # Allocated CPU
- 6 # Allocated MEM
- 7 # Status
#- 8 # IM MAD
#- 9 # VM MAD
#- 10 # Labels
#- 11 # Search data
actions:
Host.refresh: true
Host.create_dialog: true

View File

@ -359,16 +359,14 @@ tabs:
- 3 # Group
- 4 # Name
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
#- 14 # Search data
#- 15 # Clock leases
- 6 # Host
- 7 # IPs
#- 8 # Start Time
- 9 # VNC
#- 10 # Hidden Template
#- 11 # Labels
#- 12 # Search data
#- 13 # Clock leases
actions:
VM.refresh: true
VM.create_dialog: true
@ -554,16 +552,13 @@ tabs:
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
#- 14 # Search data
- 5 # Allocated CPU
- 6 # Allocated MEM
- 7 # Status
#- 8 # IM MAD
#- 9 # VM MAD
#- 10 # Labels
#- 11 # Search data
actions:
Host.refresh: true
Host.create_dialog: true

View File

@ -42,8 +42,8 @@ define(function(require) {
var RESOURCE = "Host";
var XML_ROOT = "HOST";
var TAB_NAME = require("./tabId");
var LABELS_COLUMN = 13;
var SEARCH_COLUMN = 14;
var LABELS_COLUMN = 10;
var SEARCH_COLUMN = 11;
var TEMPLATE_ATTR = "TEMPLATE";
/*
@ -77,14 +77,11 @@ define(function(require) {
Locale.tr("Name") ,
Locale.tr("Cluster"),
Locale.tr("RVMs"),
Locale.tr("Real CPU"),
Locale.tr("Allocated CPU"),
Locale.tr("Real MEM"),
Locale.tr("Allocated MEM"),
Locale.tr("Status"),
Locale.tr("IM MAD"),
Locale.tr("VM MAD"),
Locale.tr("Last monitored on"),
Locale.tr("Labels"),
"search_data"
];
@ -184,14 +181,11 @@ define(function(require) {
element.NAME,
element.CLUSTER_ID.length ? element.CLUSTER_ID : "-",
element.HOST_SHARE.RUNNING_VMS, //rvm
cpuBars.real||"",
cpuBars.allocated||"",
memoryBars.real||"",
memoryBars.allocated||"",
state,
element.IM_MAD,
element.VM_MAD,
Humanize.prettyTime(element.LAST_MON_TIME),
(LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||""),
btoa(unescape(encodeURIComponent(JSON.stringify(search))))
];

View File

@ -43,8 +43,8 @@ define(function(require) {
var RESOURCE = "VM";
var XML_ROOT = "VM";
var TAB_NAME = require('./tabId');
var LABELS_COLUMN = 13;
var SEARCH_COLUMN = 14;
var LABELS_COLUMN = 11;
var SEARCH_COLUMN = 12;
/*

View File

@ -34,8 +34,6 @@ define(function(require) {
Locale.tr("Owner"),
Locale.tr("Group"),
Locale.tr("Status"),
Locale.tr("Used CPU"),
Locale.tr("Used Memory"),
Locale.tr("Host"),
Locale.tr("IPs"),
Locale.tr("Start Time"),
@ -275,8 +273,6 @@ define(function(require) {
element.UNAME,
element.GNAME,
state,
cpuMonitoring,
Humanize.size(memoryMonitoring),
hostname,
OpenNebulaVM.ipsDropdown(element),
Humanize.prettyTimeDatatable(element.STIME),