mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Implements import/export of alerts exclusions
This commit is contained in:
parent
aebd20d848
commit
1756f8d63c
2 changed files with 25 additions and 1 deletions
|
|
@ -316,6 +316,22 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
-- @brief Import a previously `export`ed exclusions configuration
|
||||
function alert_exclusions.import(exclusions)
|
||||
_set_configured_alert_exclusions(exclusions)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- @brief Exports the current configuration
|
||||
function alert_exclusions.export()
|
||||
local exclusions = _get_configured_alert_exclusions()
|
||||
|
||||
return exclusions
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- @brief Delete all alert_exclusions
|
||||
function alert_exclusions.cleanup()
|
||||
local locked = _lock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue