mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 08:50:12 +00:00
Add am_utils.getRttSchemaForGranularity
This commit is contained in:
parent
4d61e7b23d
commit
70ca600ed3
2 changed files with 18 additions and 2 deletions
|
|
@ -95,6 +95,21 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function am_utils.getRttSchemaForGranularity(granularity)
|
||||
local alert_consts = require("alert_consts")
|
||||
local str_granularity
|
||||
|
||||
if(tonumber(granularity) ~= nil) then
|
||||
str_granularity = alert_consts.sec2granularity(granularity)
|
||||
else
|
||||
str_granularity = granularity
|
||||
end
|
||||
|
||||
return("am_host:rtt_" .. (str_granularity or "min"))
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
local function deserializeRttPrefs(host_key, val, config_only)
|
||||
local rv
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue