mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Add traffic profiles rules. (#7839)
This commit is contained in:
parent
fff614757d
commit
4e9d324236
6 changed files with 230 additions and 6 deletions
|
|
@ -3389,6 +3389,14 @@ function timeseries_info.get_host_rules_schema(rule_type)
|
|||
end
|
||||
end
|
||||
return metric_list
|
||||
elseif rule_type == 'profiles' then
|
||||
local metric_list = {}
|
||||
for _, item in ipairs(community_timeseries) do
|
||||
if (item.id == timeseries_id.profile) then
|
||||
metric_list[#metric_list + 1] = item
|
||||
end
|
||||
end
|
||||
return metric_list
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue