Implements MySQL Top Talkers Retrieval and Visualization

Overal Top Talkers are retrieved with just one single
MySQL query and include both ipv4 and ipv4. Top talkers
can be visualized on a per-interface and per-host basis,
and can be sliced and diced.
This commit is contained in:
Simone Mainardi 2016-02-08 21:35:27 +01:00
parent bfb47398b3
commit 08622e8f18
4 changed files with 110 additions and 12 deletions

View file

@ -203,6 +203,7 @@ local function getHistoricalTopTalkers(ifid, ifname, epoch, add_vlan)
end
local function getHistoricalTopTalkersInInterval(ifid, ifname, epoch_start, epoch_end, add_vlan)
-- retrieves Aggregated top Talkers value from sqlite
local json = require ("dkjson")
if epoch_start == nil or epoch_end == nil or epoch_start == "" or epoch_end == "" then
return json.encode({}, nil)