mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
02c3625c8c
commit
ce9b4c7126
@ -244,4 +244,9 @@
|
||||
color: "#e1ef08"
|
||||
warning:
|
||||
time: "-86400"
|
||||
color: "#ef2808"
|
||||
color: "#ef2808"
|
||||
|
||||
# This change the thresholds of dashboard resource usage
|
||||
:threshold_min: 0
|
||||
:threshold_low: 33
|
||||
:threshold_high: 66
|
@ -176,6 +176,11 @@ define(function(require) {
|
||||
|
||||
"allTabs": function() {
|
||||
return Object.keys(_config["view"]["tabs"]);
|
||||
},
|
||||
"thresholds":{
|
||||
"min":_config["user_config"]["threshold_min"],
|
||||
"low":_config["user_config"]["threshold_low"],
|
||||
"high":_config["user_config"]["threshold_high"]
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -317,6 +317,9 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function quotaDashboard(html_tag, legend, font_large_size, font_small_size, quota) {
|
||||
var min = SunstoneConfig.thresholds.min;
|
||||
var low = SunstoneConfig.thresholds.low;
|
||||
var high = SunstoneConfig.thresholds.high;
|
||||
return "<div class=\"row\">" +
|
||||
"<div class=\"large-12 columns\">" +
|
||||
"<span>" + legend + "</span>" +
|
||||
@ -324,7 +327,7 @@ define(function(require) {
|
||||
"</div>" +
|
||||
"<div class=\"row\">" +
|
||||
"<div class=\"large-12 columns\">" +
|
||||
" <meter id=\"" + html_tag + "_meter\" min=\"0\" low=\"33\" high=\"66\" optimum=\"0\" max=\"100\" value=\"0\"></meter>" +
|
||||
" <meter id=\"" + html_tag + "_meter\" min=\""+ min +"\" low=\""+ low +"\" high=\""+ high +"\" optimum=\"0\" max=\"100\" value=\"0\"></meter>" +
|
||||
"</div>" +
|
||||
"</div>" +
|
||||
"<div class=\"row\">" +
|
||||
|
@ -37,7 +37,10 @@
|
||||
'vnc_wss' : '<%= session[:vnc_wss] %>',
|
||||
'table_order' : '<%= session[:table_order] %>',
|
||||
'default_view' : '<%= session[:default_view] %>',
|
||||
'page_length' : '<%= session[:page_length] %>'
|
||||
'page_length' : '<%= session[:page_length] %>',
|
||||
'threshold_min' : '<%= $conf[:threshold_min] %>',
|
||||
'threshold_low' : '<%= $conf[:threshold_low] %>',
|
||||
'threshold_high' : '<%= $conf[:threshold_high] %>',
|
||||
},
|
||||
'system_config' : {
|
||||
'marketplace_url' : '<%= $conf[:marketplace_url] %>',
|
||||
|
Loading…
x
Reference in New Issue
Block a user