mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
23 lines
642 B
Lua
23 lines
642 B
Lua
--
|
|
-- (C) 2019-20 - ntop.org
|
|
--
|
|
|
|
local alert_keys = require "alert_keys"
|
|
local alert_creators = require "alert_creators"
|
|
|
|
local function formatNewDeviceConnectionAlert(ifid, alert, info)
|
|
return(i18n("alert_messages.a_new_device_has_connected", {
|
|
device = info.device,
|
|
url = getMacUrl(alert.alert_entity_val),
|
|
}))
|
|
end
|
|
|
|
-- #######################################################
|
|
|
|
return {
|
|
alert_key = alert_keys.ntopng.alert_new_device,
|
|
i18n_title = "alerts_dashboard.new_device",
|
|
i18n_description = formatNewDeviceConnectionAlert,
|
|
icon = "fas fa-asterisk",
|
|
creator = alert_creators.createDeviceConnectionDisconnection,
|
|
}
|