mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Re-enable alerts generation. Use structured format functions.
This commit is contained in:
parent
bfd2759eeb
commit
04e01c24b0
2 changed files with 151 additions and 109 deletions
|
|
@ -430,6 +430,15 @@ function alertType(v)
|
|||
return(_handleArray(typetable, v))
|
||||
end
|
||||
|
||||
function alertLevel(v)
|
||||
local leveltable = {}
|
||||
|
||||
for i, t in ipairs(alert_level_keys) do
|
||||
leveltable[#leveltable + 1] = {t[2], t[3]}
|
||||
end
|
||||
return(_handleArray(leveltable, v))
|
||||
end
|
||||
|
||||
function alertTypeRaw(alert_idx)
|
||||
alert_idx = alert_idx + 1
|
||||
if alert_idx <= #alert_type_keys then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue