mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
parent
1cbdbbd339
commit
5b11db117b
5 changed files with 3 additions and 2 deletions
31
scripts/plugins/internals/user_scripts/flow/not_purged.lua
Normal file
31
scripts/plugins/internals/user_scripts/flow/not_purged.lua
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
--
|
||||
-- (C) 2019-20 - ntop.org
|
||||
--
|
||||
|
||||
local flow_consts = require("flow_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
|
||||
-- #################################################################
|
||||
|
||||
local script = {
|
||||
-- NOTE: hooks defined below
|
||||
hooks = {},
|
||||
periodic_update_seconds = 600,
|
||||
|
||||
gui = {
|
||||
i18n_title = "flow_callbacks_config.not_purged",
|
||||
i18n_description = "flow_callbacks_config.not_purged_description",
|
||||
}
|
||||
}
|
||||
|
||||
-- #################################################################
|
||||
|
||||
function script.hooks.periodicUpdate(now)
|
||||
if flow.isNotPurged() then
|
||||
flow.triggerStatus(flow_consts.status_types.status_not_purged)
|
||||
end
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
||||
return script
|
||||
Loading…
Add table
Add a link
Reference in a new issue