mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Add comment on auto-release of lua engaged alerts
This commit is contained in:
parent
7e03162318
commit
32565a5d91
1 changed files with 6 additions and 0 deletions
|
|
@ -343,6 +343,12 @@ function alerts_api.trigger(entity_info, type_info, when, cur_alerts)
|
|||
local params = {alert_key_name, granularity_id, type_info.score, type_info.alert_type.alert_key, subtype,
|
||||
alert_json, device_ip, device_name, port}
|
||||
|
||||
-- Trigger the alert
|
||||
--
|
||||
-- Note: alerts are stored as engaged in class OtherAlertableEntity and are automatically
|
||||
-- released after each (periodic) iteration of the checks if they are not triggered again.
|
||||
-- See runInterfaceChecks (checks.lua) and releaseEntityAlerts (alert_management.lua)
|
||||
--
|
||||
if (entity_info.alert_entity.entity_id == alert_consts.alertEntity("interface")) then
|
||||
if interface.checkContext(entity_info.entity_val) then
|
||||
triggered = interface.storeTriggeredAlert(table.unpack(params))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue