Able to specify trend value (min, max or avg by default).

This commit is contained in:
Alexander Zobnin
2016-02-05 12:11:23 +03:00
parent 5a77fafc61
commit 16a7786247
2 changed files with 19 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ function (_, $) {
var categories = {
Transform: [],
Aggregate: [],
Trends: [],
Alias: []
};
@@ -76,6 +77,15 @@ function (_, $) {
defaultParams: ['1m'],
});
addFuncDef({
name: 'trendValue',
category: 'Trends',
params: [
{ name: 'type', type: 'string', options: ['avg', 'min', 'max'] }
],
defaultParams: ['avg'],
});
addFuncDef({
name: 'setAlias',
category: 'Alias',