Add aggregated flows data retention. (#7497)

This commit is contained in:
Nicolo Maio 2023-05-31 08:48:35 +00:00
parent c8bbb0196b
commit 73ea3b6dfc
5 changed files with 50 additions and 6 deletions

View file

@ -482,6 +482,14 @@ if auth.has_capability(auth.capabilities.preferences) then
max = 365 * 10
})
prefsInputFieldPrefs(subpage_active.entries["aggregated_flows_data_retention"].title,
subpage_active.entries["aggregated_flows_data_retention"].description, "ntopng.prefs.",
"aggregated_flows_data_retention_days", data_retention_utils.getAggregatedFlowsDataRetention(), "number", nil, nil, nil,
{
min = data_retention_utils.getDefaultRetention()+1,
max = 365 * 10
})
prefsInputFieldPrefs(subpage_active.entries["ts_data_retention"].title,
subpage_active.entries["ts_data_retention"].description, "ntopng.prefs.",
"ts_and_stats_data_retention_days", data_retention_utils.getDefaultRetention(), "number", nil, nil, nil, {