Commit 6100336b by Torkel Ödegaard

Merge pull request #237 from maage/some-graphite-func-definitions

Some graphite func definitions
parents da7455f8 863e58a8
......@@ -112,6 +112,19 @@ function (_) {
});
addFuncDef({
name: "consolidateBy",
category: categories.Special,
params: [
{
name: 'function',
type: 'string',
options: ['sum', 'average', 'min', 'max']
}
],
defaultParams: ['max']
});
addFuncDef({
name: "groupByNode",
category: categories.Special,
params: [
......@@ -140,6 +153,16 @@ function (_) {
});
addFuncDef({
name: 'substr',
category: categories.Special,
params: [
{ name: "start", type: "int", options: [-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,12] },
{ name: "stop", type: "int", options: [-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,12] },
],
defaultParams: [0, 0]
});
addFuncDef({
name: 'sortByName',
category: categories.Special
});
......@@ -272,6 +295,27 @@ function (_) {
});
addFuncDef({
name: 'maximumAbove',
category: categories.Filter,
params: [ { name: "value", type: "int" } ],
defaultParams: [0]
});
addFuncDef({
name: 'maximumBelow',
category: categories.Filter,
params: [ { name: "value", type: "int" } ],
defaultParams: [0]
});
addFuncDef({
name: 'minimumAbove',
category: categories.Filter,
params: [ { name: "value", type: "int" } ],
defaultParams: [0]
});
addFuncDef({
name: "exclude",
category: categories.Filter,
params: [ { name: "exclude", type: 'string' } ],
......
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