Added QoE filter to live flows (#8982)

This commit is contained in:
Matteo Biscosi 2025-02-26 10:12:09 +01:00
parent 94fa500701
commit 1db56458d6
10 changed files with 161 additions and 7 deletions

View file

@ -24,7 +24,6 @@ local flow_info = _GET["flow_info"]
local flowstats = interface.getActiveFlowsStats(host, nil, false, talking_with, client, server, flow_info)
local selected_ip = _GET["flowhosts_type"]
local rsp = {}
if interface.isView() then
@ -115,6 +114,31 @@ if not host then
}
end
if ntop.isEnterpriseL then
local qoe_filters = {{
key = "qoe",
value = "",
label = i18n("all")
}}
if flowstats["qoe"] then
for key, value in pairsByField(flowstats["qoe"], "id", rev) do
qoe_filters[#qoe_filters + 1] = {
key = "qoe",
value = value.id,
label = i18n("flow_details.qoe_" .. key .. "_label")
}
end
end
rsp[#rsp + 1] = {
action = "qoe",
label = i18n("qoe"),
name = "qoe",
value = qoe_filters
}
end
local protocol_filters = {{
key = "l4proto",
value = "",