Implements alert filtering features

This commit is contained in:
Simone Mainardi 2016-11-23 18:26:38 +01:00
parent c125c62cc2
commit 3a1c14cf9a
10 changed files with 339 additions and 37 deletions

View file

@ -757,17 +757,19 @@ function drawAlertTables(num_alerts, num_engaged_alerts, num_flow_alerts, url_pa
{
title: "First Seen",
field: "column_date",
sortable: true,
css: {
textAlign: 'center'
}
},
]]
if t["status"] ~= "engaged" then
if t["status"] == "historical" then
print[[
{
title: "Duration",
field: "column_duration",
sortable: true,
css: {
textAlign: 'center'
}
@ -779,6 +781,7 @@ function drawAlertTables(num_alerts, num_engaged_alerts, num_flow_alerts, url_pa
{
title: "Severity",
field: "column_severity",
sortable: true,
css: {
textAlign: 'center'
}
@ -787,6 +790,7 @@ function drawAlertTables(num_alerts, num_engaged_alerts, num_flow_alerts, url_pa
{
title: "Alert Type",
field: "column_type",
sortable: true,
css: {
textAlign: 'center'
}