Added aggregateBy() function with aggregation type as parameter.

This commit is contained in:
Alexander Zobnin
2016-04-26 21:13:57 +03:00
parent 107141ee01
commit 485e9335ef
2 changed files with 18 additions and 0 deletions

View File

@@ -73,6 +73,16 @@ addFuncDef({
defaultParams: ['1m'],
});
addFuncDef({
name: 'aggregateBy',
category: 'Aggregate',
params: [
{ name: 'interval', type: 'string' },
{ name: 'function', type: 'string', options: ['avg', 'min', 'max', 'median'] }
],
defaultParams: ['1m', 'avg'],
});
addFuncDef({
name: 'trendValue',
category: 'Trends',