Moves alert and status definitions under lua/modules/

This commit is contained in:
Simone Mainardi 2020-10-12 15:03:39 +02:00
parent 8a3c115e9d
commit ce4d69a273
8 changed files with 0 additions and 0 deletions

View file

@ -1,21 +0,0 @@
local alert_keys = require "alert_keys"
-- #################################################
local function createUnexpectedSMTP(alert_severity, smtp_info)
local built = {
alert_severity= alert_severity,
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,
}

View file

@ -1,10 +0,0 @@
local alert_consts = require("alert_consts")
local status_keys = require "flow_keys"
return {
status_key = status_keys.ntopng.status_unexpected_smtp_server,
alert_severity = alert_consts.alert_severities.error,
alert_type = alert_consts.alert_types.alert_unexpected_smtp,
i18n_title = "unexpected_smtp.unexpected_smtp_title",
i18n_description = "unexpected_smtp.status_unexpected_smtp_description",
}