mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Adds an engine id to the engaged alerts
This commit is contained in:
parent
43b3a7f078
commit
7b13e2e6a1
10 changed files with 219 additions and 152 deletions
|
|
@ -373,6 +373,13 @@ alert_entity_keys = {
|
|||
{ "Flow", 4, "flow" }
|
||||
}
|
||||
|
||||
alert_engine_keys = {
|
||||
{"1 Minute", 0, "min" },
|
||||
{"5 Minutes", 1, "5mins" },
|
||||
{"Hourly", 2, "hour" },
|
||||
{"Daily", 3, "day" },
|
||||
}
|
||||
|
||||
alert_functions_description = {
|
||||
["active"] = "Active host time (seconds)",
|
||||
["bytes"] = "Layer 2 bytes delta (sent + received)",
|
||||
|
|
@ -430,6 +437,14 @@ function alertType(v)
|
|||
return(_handleArray(typetable, v))
|
||||
end
|
||||
|
||||
function alertEngine(v)
|
||||
local enginetable = {}
|
||||
for i, t in ipairs(alert_engine_keys) do
|
||||
enginetable[#enginetable + 1] = {t[2], t[3]}
|
||||
end
|
||||
return(_handleArray(enginetable, v))
|
||||
end
|
||||
|
||||
function alertLevel(v)
|
||||
local leveltable = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue