Fixes flows flood alert detection

Detection conditions were not properly evaluated, especially
upon threshold changes. This commit fixes the issue.

It also adds the new stateful alerts on the flows flood.
However, those alerts are still kept hidden from the main interface.
This commit is contained in:
Simone Mainardi 2016-09-01 19:06:33 +02:00
parent 88a4b7f9e0
commit 667a63076f
7 changed files with 56 additions and 35 deletions

View file

@ -47,6 +47,7 @@ print ("{ \"currentPage\" : " .. currentPage .. ",\n \"data\" : [\n")
total = 0
if alerts == nil then alerts = {} end
for _key,_value in ipairs(alerts) do
if(total > 0) then print(",\n") end