Commit 2d89cb09 by Torkel Ödegaard

Merge pull request #248 from syepes/add_functions

Add functions: sortByMaxima,sortByMinima,limit,mostDeviant,movingMedian,stdev
parents 6100336b c7c88902
...@@ -168,6 +168,16 @@ function (_) { ...@@ -168,6 +168,16 @@ function (_) {
}); });
addFuncDef({ addFuncDef({
name: 'sortByMaxima',
category: categories.Special
});
addFuncDef({
name: 'sortByMinima',
category: categories.Special
});
addFuncDef({
name: 'aliasByMetric', name: 'aliasByMetric',
category: categories.Special, category: categories.Special,
}); });
...@@ -316,6 +326,20 @@ function (_) { ...@@ -316,6 +326,20 @@ function (_) {
}); });
addFuncDef({ addFuncDef({
name: 'limit',
category: categories.Filter,
params: [ { name: "n", type: "int" } ],
defaultParams: [5]
});
addFuncDef({
name: 'mostDeviant',
category: categories.Filter,
params: [ { name: "n", type: "int" } ],
defaultParams: [10]
});
addFuncDef({
name: "exclude", name: "exclude",
category: categories.Filter, category: categories.Filter,
params: [ { name: "exclude", type: 'string' } ], params: [ { name: "exclude", type: 'string' } ],
...@@ -351,6 +375,20 @@ function (_) { ...@@ -351,6 +375,20 @@ function (_) {
}); });
addFuncDef({ addFuncDef({
name: 'movingMedian',
category: categories.Filter,
params: [ { name: "windowSize", type: "select", options: ['1min', '5min', '15min', '30min', '1hour'] } ],
defaultParams: ['1min']
});
addFuncDef({
name: 'stdev',
category: categories.Filter,
params: [ { name: "n", type: "int" }, { name: "tolerance", type: "int" } ],
defaultParams: [5,0.1]
});
addFuncDef({
name: 'highestAverage', name: 'highestAverage',
category: categories.Filter, category: categories.Filter,
params: [ { name: "count", type: "int" } ], params: [ { name: "count", type: "int" } ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment