Added behavioural maps stats

This commit is contained in:
Luca Deri 2022-03-30 11:12:56 +02:00
parent 339cb42d1d
commit 1024d70a99
5 changed files with 23 additions and 0 deletions

View file

@ -363,6 +363,14 @@ end
-- ########################################################
function ts_dump.iface_update_map_stats(when, ifstats, verbose)
if((ifstats.periodicity_map ~= nil) and (ifstats.service_map ~= nil)) then
ts_utils.append("iface:behavioural_maps", {ifid=ifstats.id, periodicity_map_entries=ifstats.periodicity_map.num_entries, service_map_entries=ifstats.service_map.num_entries}, when)
end
end
-- ########################################################
function ts_dump.run_min_dump(_ifname, ifstats, config, when, verbose)
dumpTopTalkers(_ifname, ifstats, verbose)
@ -379,6 +387,7 @@ function ts_dump.run_min_dump(_ifname, ifstats, config, when, verbose)
ts_dump.iface_update_l4_stats(when, ifstats, verbose)
ts_dump.iface_update_dscp_stats(when, ifstats, verbose)
ts_dump.iface_update_anomalies(when, ifstats, verbose)
ts_dump.iface_update_map_stats(when, ifstats, verbose)
-- Check both if global flows dump is enabled (config.is_dump_flows_enabled)
-- and also if flows dump is enabled for the current interface (ifstats.isFlowDumpDisabled)