mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
parent
ab3b209832
commit
ddc3c3de6b
10 changed files with 37 additions and 216 deletions
|
|
@ -344,7 +344,10 @@ end
|
|||
-- @return nil
|
||||
function alert_utils.deleteFlowAlertsMatching(host_ip, alert_id)
|
||||
local flow_alert_store = require("flow_alert_store").new()
|
||||
flow_alert_store:add_ip_filter(hostkey2hostinfo(host_ip)["host"])
|
||||
|
||||
if not isEmptyString(host_ip) then
|
||||
flow_alert_store:add_ip_filter(hostkey2hostinfo(host_ip)["host"])
|
||||
end
|
||||
flow_alert_store:add_alert_id_filter(alert_id)
|
||||
|
||||
-- Perform the actual deletion
|
||||
|
|
@ -357,7 +360,10 @@ end
|
|||
-- @return nil
|
||||
function alert_utils.deleteHostAlertsMatching(host_ip, alert_id)
|
||||
local host_alert_store = require("host_alert_store").new()
|
||||
host_alert_store:add_ip_filter(hostkey2hostinfo(host_ip)["host"])
|
||||
|
||||
if not isEmptyString(host_ip) then
|
||||
host_alert_store:add_ip_filter(hostkey2hostinfo(host_ip)["host"])
|
||||
end
|
||||
host_alert_store:add_alert_id_filter(alert_id)
|
||||
|
||||
-- Perform the actual deletion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue