mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 08:50:12 +00:00
Implements example of simplified flow alerts
This commit is contained in:
parent
683a4a727b
commit
93920ccdce
9 changed files with 132 additions and 7 deletions
|
|
@ -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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue