ntopng/scripts/lua/modules/alert_definitions/alert_host_pool_connection.lua
Simone Mainardi 290175b16f Refactors alrt builders into creators
Refactors builders into creators: calls
2020-04-27 15:53:56 +02:00

25 lines
697 B
Lua

--
-- (C) 2019-20 - ntop.org
--
local alert_keys = require "alert_keys"
local alert_creators = require "alert_creators"
-- #######################################################
local function poolConnectionFormat(ifid, alert, info)
return(i18n("alert_messages.host_pool_has_connected", {
pool = info.pool,
url = getHostPoolUrl(alert.alert_entity_val),
}))
end
-- #######################################################
return {
alert_key = alert_keys.ntopng.alert_host_pool_connection,
i18n_title = "alerts_dashboard.host_pool_connection",
i18n_description = poolConnectionFormat,
icon = "fas fa-sign-in",
creator = alert_creators.createPoolConnectionDisconnection,
}