Added severity to ntopng checks table

This commit is contained in:
MatteoBiscosi 2022-10-20 10:34:23 +02:00
parent 933e8339ec
commit eda4cfb088
48 changed files with 406 additions and 340 deletions

View file

@ -137,3 +137,22 @@ jQuery.fn.dataTable.ext.type.order['file-size-pre'] = function ( data ) {
return -1;
};
};
jQuery.fn.dataTable.ext.type.order['severity-pre'] = function ( data ) {
if (data === null || data === '') {
return 0;
}
var lowerData = data.toLowerCase()
var severities = [
'',
'none',
'info',
'notice',
'warning',
'error',
'critical',
'emergency',
]
return severities.indexOf(lowerData);
};