ntopng/scripts/lua/modules/alert_definitions/alert_unexpected_smtp.lua
Matteo Biscosi 0e341f3d0b
Modified flow scripts in view of the new trigger_status (#4710)
* Modified blacklisted script in view of the new flow_script API

* Modified plugins scripting in view of the new API

* Modified flow scripts with the new trigger API

* Fixed creators severity

Co-authored-by: matteo <biscosi@ntop.org>
2020-11-12 13:52:53 +01:00

20 lines
492 B
Lua

local alert_keys = require "alert_keys"
-- #################################################
local function createUnexpectedSMTP(smtp_info)
local built = {
alert_type_params = smtp_info
}
return built
end
-- #################################################
return {
alert_key = alert_keys.ntopng.alert_unexpected_smtp_server,
i18n_title = "unexpected_smtp.alert_unexpected_smtp_title",
icon = "fas fa-exclamation",
creator = createUnexpectedSMTP,
}