mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Added QoE filter to live flows (#8982)
This commit is contained in:
parent
94fa500701
commit
1db56458d6
10 changed files with 161 additions and 7 deletions
|
|
@ -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 = "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue