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

@ -0,0 +1,21 @@
local alert_keys = require "alert_keys"
-- #################################################
local function createUnexpectedDNS(alert_severity, dns_info)
local built = {
alert_severity= alert_severity,
alert_type_params = dns_info
}
return built
end
-- #################################################
return {
alert_key = alert_keys.ntopng.alert_unexpected_dns_server,
i18n_title = "unexpected_dns.alert_unexpected_dns_title",
icon = "fas fa-exclamation",
creator = createUnexpectedDNS,
}