mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Reworks suspicious file transfers
This commit is contained in:
parent
5ca25a30e4
commit
c543df45f9
6 changed files with 15 additions and 15 deletions
|
|
@ -1,31 +0,0 @@
|
|||
--
|
||||
-- (C) 2019-20 - ntop.org
|
||||
--
|
||||
|
||||
local alert_keys = require "alert_keys"
|
||||
|
||||
-- #######################################################
|
||||
|
||||
-- @brief Prepare an alert table used to generate the alert
|
||||
-- @param alert_severity A severity as defined in `alert_consts.alert_severities`
|
||||
-- @param http_info A lua table containing flow HTTP information obtained with `flow.getHTTPInfo()`
|
||||
-- @return A table with the alert built
|
||||
local function createBATAlert(alert_severity, http_info)
|
||||
local built = {
|
||||
alert_severity = alert_severity,
|
||||
alert_type_params = http_info
|
||||
}
|
||||
|
||||
return built
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
||||
return {
|
||||
-- scripts/lua/modules/alert_keys.lua
|
||||
alert_key = alert_keys.ntopng.alert_binary_application_transfer,
|
||||
-- scripts/locales/en.lua
|
||||
i18n_title = "alerts_dashboard.binary_application_transfer",
|
||||
icon = "fas fa-file-download",
|
||||
creator = createBATAlert,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue