Add support for other aggregation functions

monitored host RTT now uses MAX as aggregation function
This commit is contained in:
emanuele-f 2019-06-18 16:49:25 +02:00
parent 7df375125e
commit e43bb6680e
8 changed files with 56 additions and 14 deletions

View file

@ -119,7 +119,7 @@ function system_scripts.runTask(task, when)
return(false)
end
ts_utils.newSchema = function(name, label, options)
ts_utils.newSchema = function(name, options)
local schema = ts_utils.getSchema(name)
if(schema == nil) then
return old_new_schema_fn(name, table.merge(default_schema_options, options))