mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
46 lines
1.2 KiB
Lua
46 lines
1.2 KiB
Lua
--
|
|
-- (C) 2019-21 - ntop.org
|
|
--
|
|
|
|
-- ##############################################
|
|
|
|
local alert_keys = require "alert_keys"
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
local format_utils = require "format_utils"
|
|
local json = require("dkjson")
|
|
-- Import the classes library.
|
|
local classes = require "classes"
|
|
-- Make sure to import the Superclass!
|
|
local alert = require "alert"
|
|
|
|
-- ##############################################
|
|
|
|
local alert_remote_to_remote = classes.class(alert)
|
|
|
|
-- ##############################################
|
|
|
|
alert_remote_to_remote.meta = {
|
|
alert_key = alert_keys.ntopng.alert_remote_to_remote,
|
|
i18n_title = "alerts_dashboard.remote_to_remote",
|
|
icon = "fas fa-exclamation",
|
|
}
|
|
|
|
-- ##############################################
|
|
|
|
-- @brief Prepare an alert table used to generate the alert
|
|
-- @return A table with the alert built
|
|
function alert_remote_to_remote:init()
|
|
-- Call the parent constructor
|
|
self.super:init()
|
|
end
|
|
|
|
-- #######################################################
|
|
|
|
function alert_remote_to_remote.format(ifid, alert, alert_type_params)
|
|
return
|
|
end
|
|
|
|
-- #######################################################
|
|
|
|
return alert_remote_to_remote
|