mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Implements alert:store class method
This commit is contained in:
parent
d72219b311
commit
0ccc3507d0
2 changed files with 9 additions and 0 deletions
|
|
@ -43,6 +43,8 @@ function script.hooks.min(params)
|
|||
alert:set_victim()
|
||||
end
|
||||
|
||||
alert:store(params.alert_entity)
|
||||
|
||||
if math.random(2) == 1 then
|
||||
alert:trigger(params.alert_entity, nil, params.cur_alerts)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue