Commit dbe07115 authored by Otto Jonassen Wittner's avatar Otto Jonassen Wittner
Browse files

Added mouseover titles for IPs in popup tables

parent 2bfb4dea
Pipeline #144024 passed with stages
in 1 minute and 14 seconds
......@@ -758,9 +758,17 @@ dragonlab:
routechange_ip:
title: "IP"
unit: ""
descr: "IP address(es) router(s) responisble for route-change"
descr: "IP address(es) of router(s) responisble for route-change"
type: "string"
aggr: ""
mouseover: "routechange_name" # Show tooltip title on mouse-over based on other field
routechange_name:
title: "Name"
unit: ""
descr: "Host name of router(s) responisble for route-change"
type: "string"
aggr: ""
mouseover: "routechange_ip" # Show tooltip title on mouse-over based on other field
uninett:
title: "Uninett"
......@@ -1508,6 +1516,13 @@ uninett:
routechange_ip:
title: "IP"
unit: ""
descr: "IP address(es) router(s) responisble for route-change"
descr: "IP address(es) of router(s) responisble for route-change"
type: "string"
aggr: ""
routechange_name:
title: "Name"
unit: ""
descr: "Host name of router(s) responisble for route-change"
type: "string"
aggr: ""
mouseover: "routechange_ip" # Show tooltip title on mouse-over based on other field
......@@ -227,6 +227,7 @@ var prop_desc= { down_ppm:"Unavailability (PPM)", h_ddelay:"Queue(ms)", h_jit:"
tloss:"Time lost(ms)", h_slope_10:"Slope",
big_gaps:"Big gaps(#)", big_time:"Big gap time(s)", small_gaps:"Small gaps(#)", small_time:"Small gap time(s)"
};
var prop_long_desc={};
var prop_sum = ['tloss', 'anomaly_count'];
var prop_aggr = { tloss: 'sum', anomaly_count: 'sum' };
......@@ -283,6 +284,10 @@ var points_cache=[];
var title = conffile[parms.net].event_type[e].field[f].title
prop_desc[f] = title + ( unit ? " (" + unit + ")" : "") ;
prop_aggr[f] = conffile[parms.net].event_type[e].field[f].aggr;
if (! jQuery.isEmptyObject(conffile[parms.net].event_type[e].field[f].descr) ) {
// Get long descriptions too
prop_long_desc[f] = conffile[parms.net].event_type[e].field[f].descr;
}
}
// Store event type and properties for summary info
event_sum_type[e] = conffile[parms.net].event_type[e].summary_event_type;
......@@ -298,6 +303,10 @@ var points_cache=[];
var title = conffile[parms.net].event_type[e].summary_field[f].title
var descr = title + ( unit ? " (" + unit + ")" : "") ;
prop_desc[f] = descr;
if (! jQuery.isEmptyObject(conffile[parms.net].event_type[e].summary_field[f].descr) ) {
// Get long descriptions too
prop_long_desc[f] = conffile[parms.net].event_type[e].summary_field[f].descr;
}
prop_aggr[f] = conffile[parms.net].event_type[e].summary_field[f].aggr;
if (! jQuery.isEmptyObject(conffile[parms.net].event_type[e].summary_field[f].threshold_low) && ! jQuery.isEmptyObject(conffile[parms.net].event_type[e].summary_field[f].threshold_high ) ) {
// Add/update thresholds values for property/variable.
......@@ -1028,7 +1037,12 @@ function gap_list( from, to){
// Config from file available. Build table header row.
html="<table><thead><td>Day Time";
for (const col in conffile[parms.net].event_type[etype].popup.table) {
html += "<td>" + prop_desc[conffile[parms.net].event_type[etype].popup.table[col]];
// Prepare colum heading with popup title text.
var title_text = "";
if (typeof prop_long_desc[conffile[parms.net].event_type[etype].popup.table[col]] != "undefined") {
title_text = prop_long_desc[conffile[parms.net].event_type[etype].popup.table[col]];
}
html += "<td title='" + title_text + "'>" + prop_desc[conffile[parms.net].event_type[etype].popup.table[col]];
}
html += "</thead>";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment