Implement aggregateBy

This commit is contained in:
Alexander Zobnin
2021-05-26 13:04:57 +03:00
parent 1cdeafd9ca
commit 5d3433aef5
3 changed files with 55 additions and 6 deletions

View File

@@ -200,7 +200,7 @@ addFuncDef({
category: 'Aggregate',
params: [
{ name: 'interval', type: 'string' },
{ name: 'function', type: 'string', options: ['avg', 'min', 'max', 'sum', 'count', 'median'] }
{ name: 'function', type: 'string', options: ['avg', 'min', 'max', 'sum', 'count', 'median', 'first', 'last'] }
],
defaultParams: ['1m', 'avg'],
});