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 createUnexpectedNTP(alert_severity, ntp_info)
local built = {
alert_severity= alert_severity,
alert_type_params = ntp_info
}
return built
end
-- #################################################
return {
alert_key = alert_keys.ntopng.alert_unexpected_ntp_server,
i18n_title = "unexpected_ntp.alert_unexpected_ntp_title",
icon = "fas fa-exclamation",
creator = createUnexpectedNTP,
}