mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Add support for custom flow alerts in user scripts
This commit is contained in:
parent
862bc0dddd
commit
2fdc860ed2
11 changed files with 222 additions and 38 deletions
|
|
@ -13,11 +13,14 @@ local format_utils = require "format_utils"
|
|||
local json = require "dkjson"
|
||||
local alerts_api = require "alerts_api"
|
||||
local alert_consts = require "alert_consts"
|
||||
local user_scripts = require "user_scripts"
|
||||
|
||||
sendHTTPHeader('application/json')
|
||||
|
||||
local status = _GET["status"]
|
||||
|
||||
user_scripts.loadCustomPrefs()
|
||||
|
||||
local engaged = false
|
||||
if status == "engaged" then
|
||||
engaged = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue