Add sortByMaxima,sortByMinima,limit,mostDeviant,movingMedian,stdev

This commit is contained in:
Sebastian YEPES
2014-03-28 22:23:33 +01:00
parent 6100336b2a
commit c7c88902bd

View File

@@ -167,6 +167,16 @@ function (_) {
category: categories.Special
});
addFuncDef({
name: 'sortByMaxima',
category: categories.Special
});
addFuncDef({
name: 'sortByMinima',
category: categories.Special
});
addFuncDef({
name: 'aliasByMetric',
category: categories.Special,
@@ -315,6 +325,20 @@ function (_) {
defaultParams: [0]
});
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",
category: categories.Filter,
@@ -350,6 +374,20 @@ function (_) {
defaultParams: [10]
});
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',
category: categories.Filter,