mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added total flows and historical flow ref to obs points
This commit is contained in:
parent
39cfd02a51
commit
e6d50ceeb8
9 changed files with 32 additions and 12 deletions
|
|
@ -4889,6 +4889,18 @@ function get_html_color(index)
|
|||
return palette[(index % #palette) + 1]
|
||||
end
|
||||
|
||||
function add_historical_flow_explorer_button_ref(extra_params)
|
||||
local base_url = ntop.getHttpPrefix() .. "/lua/pro/db_search.lua?"
|
||||
|
||||
for k, v in pairs(extra_params) do
|
||||
base_url = base_url .. k .. "=" .. v["value"] .. ";" .. v["operator"]
|
||||
end
|
||||
|
||||
local button = '<a href="' .. base_url .. '" data-placement="bottom" class="btn btn-sm btn-primary" title="Historical Flow Explorer"><i class="fas fa-search-plus fa-lg"></i></a>'
|
||||
|
||||
return button
|
||||
end
|
||||
|
||||
--
|
||||
-- IMPORTANT
|
||||
-- Leave it at the end so it can use the functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue