Reworks UI list of defined alert and flow keys

This commit is contained in:
Simone Mainardi 2020-12-22 16:51:26 +01:00
parent bcf2c2c1ed
commit c273478b7a
8 changed files with 27 additions and 111 deletions

View file

@ -1,31 +0,0 @@
--
-- (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,
}