Implements example of simplified flow alerts

This commit is contained in:
Simone Mainardi 2020-11-10 15:10:54 +01:00
parent 683a4a727b
commit 93920ccdce
9 changed files with 132 additions and 7 deletions

View file

@ -0,0 +1,31 @@
--
-- (C) 2019-20 - ntop.org
--
local alert_keys = require "alert_keys"
-- #######################################################
-- @brief Prepare an alert table used to generate the alert
-- @param one_param The first alert param
-- @param another_param The second alert param
-- @return A table with the alert built
local function createDemo(one_param, another_param)
local built = {
alert_type_params = {
one_param = one_param,
another_param = another_param
},
}
return built
end
-- #######################################################
return {
alert_key = alert_keys.user.alert_user_03,
i18n_title = "New API Demo",
icon = "fas fa-exclamation",
creator = createDemo,
}