ntopng/scripts/callbacks/minute/interface/timeseries.lua
GabrieleDeri 57d2226d90
Some checks are pending
Build / build (push) Waiting to run
CIFuzz / Fuzzing (address) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
CodeQL / Analyze-1 (push) Waiting to run
Ported timeseries to new serving layer for frontend (#10415)
* Ported to new ts backend serving layer for frontend

* Update dist
2026-06-02 11:22:51 +02:00

30 lines
761 B
Lua

--
-- (C) 2013-26 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "ntop_utils"
local ts_dump = require("ts_min_dump_utils")
-- ########################################################
local verbose = ntop.verboseTrace()
local when = os.time()
local ifstats = interface.getStats()
local _ifname = ifstats.name
-- ########################################################
-- Dumping timeseries stats
ts_dump.run_min_dump(_ifname, ifstats, when, verbose)
-- High resolution requested, dump 5 minutes timeseries each minute
if hasHighResolutionTs() then
local ts_5min_dump = require "ts_5min_dump_utils"
ts_5min_dump.run_5min_dump(_ifname, ifstats, when, verbose)
end