mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 08:50:12 +00:00
Refactors alert_severities into an independend Lua module
This commit is contained in:
parent
e683509dec
commit
b3dc39c641
109 changed files with 317 additions and 264 deletions
|
|
@ -5,7 +5,7 @@
|
|||
local flow_consts = require("flow_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alerts_api = require "alerts_api"
|
||||
local alert_consts = require("alert_consts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
-- #################################################################
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ function script.hooks.protocolDetected(now)
|
|||
if(flow.getnDPICategoryName() == "Mining") then
|
||||
local web_mining_detected_type = flow_consts.status_types.status_web_mining_detected.create()
|
||||
|
||||
alerts_api.trigger_status(web_mining_detected_type, alert_consts.alert_severities.error, 50, 10, 50)
|
||||
alerts_api.trigger_status(web_mining_detected_type, alert_severities.error, 50, 10, 50)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue