mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
implemented wizard-likes messages for endpoints and recipients (#4658)
This commit is contained in:
parent
9d232d614c
commit
8dd860ea2a
10 changed files with 211 additions and 14 deletions
|
|
@ -37,6 +37,12 @@ local notification_configs = {}
|
|||
|
||||
-- #################################################################
|
||||
|
||||
-- Key where it's saved the name of the latest endpoint created.
|
||||
-- This name is used for the notifications that help the user to create recipients
|
||||
notification_configs.LAST_ENDPOINT_NAME_CREATED_CACHE_KEY = "ntopng.cache.endpoint_hints.last_endpoint_created"
|
||||
|
||||
-- #################################################################
|
||||
|
||||
function notification_configs.get_types(exclude_builtin)
|
||||
local endpoint_types = {}
|
||||
|
||||
|
|
@ -382,7 +388,7 @@ function notification_configs.add_configs_with_recipients(configs)
|
|||
local endpoint_conf_name = conf.endpoint_conf_name
|
||||
local conf_params = conf.endpoint_conf
|
||||
|
||||
if endpoint_key and endpoint_conf_name and conf_params and conf.recipients and
|
||||
if endpoint_key and endpoint_conf_name and conf_params and conf.recipients and
|
||||
not conf_params.builtin then
|
||||
|
||||
local ret = notification_configs.add_config(endpoint_key, endpoint_conf_name, conf_params)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue