Commit a3dba607 by Dan Cech

sync function categories with graphite-web

parent ebad19b2
...@@ -59,35 +59,35 @@ addFuncDef({ ...@@ -59,35 +59,35 @@ addFuncDef({
name: 'diffSeries', name: 'diffSeries',
params: optionalSeriesRefArgs, params: optionalSeriesRefArgs,
defaultParams: ['#A'], defaultParams: ['#A'],
category: 'Calculate', category: 'Combine',
}); });
addFuncDef({ addFuncDef({
name: 'stddevSeries', name: 'stddevSeries',
params: optionalSeriesRefArgs, params: optionalSeriesRefArgs,
defaultParams: [''], defaultParams: [''],
category: 'Calculate', category: 'Combine',
}); });
addFuncDef({ addFuncDef({
name: 'divideSeries', name: 'divideSeries',
params: optionalSeriesRefArgs, params: optionalSeriesRefArgs,
defaultParams: ['#A'], defaultParams: ['#A'],
category: 'Calculate', category: 'Combine',
}); });
addFuncDef({ addFuncDef({
name: 'multiplySeries', name: 'multiplySeries',
params: optionalSeriesRefArgs, params: optionalSeriesRefArgs,
defaultParams: ['#A'], defaultParams: ['#A'],
category: 'Calculate', category: 'Combine',
}); });
addFuncDef({ addFuncDef({
name: 'asPercent', name: 'asPercent',
params: optionalSeriesRefArgs, params: optionalSeriesRefArgs,
defaultParams: ['#A'], defaultParams: ['#A'],
category: 'Calculate', category: 'Combine',
}); });
addFuncDef({ addFuncDef({
...@@ -153,26 +153,19 @@ addFuncDef({ ...@@ -153,26 +153,19 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'alias', name: 'alias',
category: 'Special', category: 'Alias',
params: [{ name: 'alias', type: 'string' }], params: [{ name: 'alias', type: 'string' }],
defaultParams: ['alias'], defaultParams: ['alias'],
}); });
addFuncDef({ addFuncDef({
name: 'aliasSub', name: 'aliasSub',
category: 'Special', category: 'Alias',
params: [{ name: 'search', type: 'string' }, { name: 'replace', type: 'string' }], params: [{ name: 'search', type: 'string' }, { name: 'replace', type: 'string' }],
defaultParams: ['', '\\1'], defaultParams: ['', '\\1'],
}); });
addFuncDef({ addFuncDef({
name: 'stacked',
category: 'Special',
params: [{ name: 'stack', type: 'string' }],
defaultParams: ['stacked'],
});
addFuncDef({
name: 'consolidateBy', name: 'consolidateBy',
category: 'Special', category: 'Special',
params: [ params: [
...@@ -194,7 +187,7 @@ addFuncDef({ ...@@ -194,7 +187,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'groupByNode', name: 'groupByNode',
category: 'Special', category: 'Combine',
params: [ params: [
{ {
name: 'node', name: 'node',
...@@ -212,7 +205,7 @@ addFuncDef({ ...@@ -212,7 +205,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'aliasByNode', name: 'aliasByNode',
category: 'Special', category: 'Alias',
params: [ params: [
{ {
name: 'node', name: 'node',
...@@ -244,7 +237,7 @@ addFuncDef({ ...@@ -244,7 +237,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'sortByName', name: 'sortByName',
category: 'Special', category: 'Sorting',
params: [ params: [
{ {
name: 'natural', name: 'natural',
...@@ -258,22 +251,22 @@ addFuncDef({ ...@@ -258,22 +251,22 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'sortByMaxima', name: 'sortByMaxima',
category: 'Special', category: 'Sorting',
}); });
addFuncDef({ addFuncDef({
name: 'sortByMinima', name: 'sortByMinima',
category: 'Special', category: 'Sorting',
}); });
addFuncDef({ addFuncDef({
name: 'sortByTotal', name: 'sortByTotal',
category: 'Special', category: 'Sorting',
}); });
addFuncDef({ addFuncDef({
name: 'aliasByMetric', name: 'aliasByMetric',
category: 'Special', category: 'Alias',
}); });
addFuncDef({ addFuncDef({
...@@ -286,7 +279,7 @@ addFuncDef({ ...@@ -286,7 +279,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'countSeries', name: 'countSeries',
category: 'Special', category: 'Combine',
}); });
addFuncDef({ addFuncDef({
...@@ -303,7 +296,7 @@ addFuncDef({ ...@@ -303,7 +296,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'keepLastValue', name: 'keepLastValue',
category: 'Special', category: 'Transform',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [100], defaultParams: [100],
}); });
...@@ -436,105 +429,105 @@ addFuncDef({ ...@@ -436,105 +429,105 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'averageAbove', name: 'averageAbove',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [25], defaultParams: [25],
}); });
addFuncDef({ addFuncDef({
name: 'averageBelow', name: 'averageBelow',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [25], defaultParams: [25],
}); });
addFuncDef({ addFuncDef({
name: 'currentAbove', name: 'currentAbove',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [25], defaultParams: [25],
}); });
addFuncDef({ addFuncDef({
name: 'currentBelow', name: 'currentBelow',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [25], defaultParams: [25],
}); });
addFuncDef({ addFuncDef({
name: 'maximumAbove', name: 'maximumAbove',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'value', type: 'int' }], params: [{ name: 'value', type: 'int' }],
defaultParams: [0], defaultParams: [0],
}); });
addFuncDef({ addFuncDef({
name: 'maximumBelow', name: 'maximumBelow',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'value', type: 'int' }], params: [{ name: 'value', type: 'int' }],
defaultParams: [0], defaultParams: [0],
}); });
addFuncDef({ addFuncDef({
name: 'minimumAbove', name: 'minimumAbove',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'value', type: 'int' }], params: [{ name: 'value', type: 'int' }],
defaultParams: [0], defaultParams: [0],
}); });
addFuncDef({ addFuncDef({
name: 'minimumBelow', name: 'minimumBelow',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'value', type: 'int' }], params: [{ name: 'value', type: 'int' }],
defaultParams: [0], defaultParams: [0],
}); });
addFuncDef({ addFuncDef({
name: 'limit', name: 'limit',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [5], defaultParams: [5],
}); });
addFuncDef({ addFuncDef({
name: 'mostDeviant', name: 'mostDeviant',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [10], defaultParams: [10],
}); });
addFuncDef({ addFuncDef({
name: 'exclude', name: 'exclude',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'exclude', type: 'string' }], params: [{ name: 'exclude', type: 'string' }],
defaultParams: ['exclude'], defaultParams: ['exclude'],
}); });
addFuncDef({ addFuncDef({
name: 'highestCurrent', name: 'highestCurrent',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'count', type: 'int' }], params: [{ name: 'count', type: 'int' }],
defaultParams: [5], defaultParams: [5],
}); });
addFuncDef({ addFuncDef({
name: 'highestMax', name: 'highestMax',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'count', type: 'int' }], params: [{ name: 'count', type: 'int' }],
defaultParams: [5], defaultParams: [5],
}); });
addFuncDef({ addFuncDef({
name: 'lowestCurrent', name: 'lowestCurrent',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'count', type: 'int' }], params: [{ name: 'count', type: 'int' }],
defaultParams: [5], defaultParams: [5],
}); });
addFuncDef({ addFuncDef({
name: 'movingAverage', name: 'movingAverage',
category: 'Filter', category: 'Calculate',
params: [ params: [
{ {
name: 'windowSize', name: 'windowSize',
...@@ -547,7 +540,7 @@ addFuncDef({ ...@@ -547,7 +540,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'movingMedian', name: 'movingMedian',
category: 'Filter', category: 'Calculate',
params: [ params: [
{ {
name: 'windowSize', name: 'windowSize',
...@@ -560,56 +553,56 @@ addFuncDef({ ...@@ -560,56 +553,56 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'stdev', name: 'stdev',
category: 'Filter', category: 'Calculate',
params: [{ name: 'n', type: 'int' }, { name: 'tolerance', type: 'int' }], params: [{ name: 'n', type: 'int' }, { name: 'tolerance', type: 'int' }],
defaultParams: [5, 0.1], defaultParams: [5, 0.1],
}); });
addFuncDef({ addFuncDef({
name: 'highestAverage', name: 'highestAverage',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'count', type: 'int' }], params: [{ name: 'count', type: 'int' }],
defaultParams: [5], defaultParams: [5],
}); });
addFuncDef({ addFuncDef({
name: 'lowestAverage', name: 'lowestAverage',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'count', type: 'int' }], params: [{ name: 'count', type: 'int' }],
defaultParams: [5], defaultParams: [5],
}); });
addFuncDef({ addFuncDef({
name: 'removeAbovePercentile', name: 'removeAbovePercentile',
category: 'Filter', category: 'Filter Data',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [5], defaultParams: [5],
}); });
addFuncDef({ addFuncDef({
name: 'removeAboveValue', name: 'removeAboveValue',
category: 'Filter', category: 'Filter Data',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [5], defaultParams: [5],
}); });
addFuncDef({ addFuncDef({
name: 'removeBelowPercentile', name: 'removeBelowPercentile',
category: 'Filter', category: 'Filter Data',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [5], defaultParams: [5],
}); });
addFuncDef({ addFuncDef({
name: 'removeBelowValue', name: 'removeBelowValue',
category: 'Filter', category: 'Filter Data',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [5], defaultParams: [5],
}); });
addFuncDef({ addFuncDef({
name: 'useSeriesAbove', name: 'useSeriesAbove',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'value', type: 'int' }, { name: 'search', type: 'string' }, { name: 'replace', type: 'string' }], params: [{ name: 'value', type: 'int' }, { name: 'search', type: 'string' }, { name: 'replace', type: 'string' }],
defaultParams: [0, 'search', 'replace'], defaultParams: [0, 'search', 'replace'],
}); });
...@@ -620,7 +613,7 @@ addFuncDef({ ...@@ -620,7 +613,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'aggregateLine', name: 'aggregateLine',
category: 'Combine', category: 'Calculate',
params: [ params: [
{ {
name: 'func', name: 'func',
...@@ -634,7 +627,7 @@ addFuncDef({ ...@@ -634,7 +627,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'averageOutsidePercentile', name: 'averageOutsidePercentile',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [95], defaultParams: [95],
version: '1.0', version: '1.0',
...@@ -672,7 +665,7 @@ addFuncDef({ ...@@ -672,7 +665,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'grep', name: 'grep',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'grep', type: 'string' }], params: [{ name: 'grep', type: 'string' }],
defaultParams: ['grep'], defaultParams: ['grep'],
version: '1.0', version: '1.0',
...@@ -680,7 +673,7 @@ addFuncDef({ ...@@ -680,7 +673,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'groupByNodes', name: 'groupByNodes',
category: 'Special', category: 'Combine',
params: [ params: [
{ {
name: 'function', name: 'function',
...@@ -806,7 +799,7 @@ addFuncDef({ ...@@ -806,7 +799,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'multiplySeriesWithWildcards', name: 'multiplySeriesWithWildcards',
category: 'Calculate', category: 'Combine',
params: [ params: [
{ {
name: 'position', name: 'position',
...@@ -864,7 +857,7 @@ addFuncDef({ ...@@ -864,7 +857,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'removeBetweenPercentile', name: 'removeBetweenPercentile',
category: 'Filter', category: 'Filter Series',
params: [{ name: 'n', type: 'int' }], params: [{ name: 'n', type: 'int' }],
defaultParams: [95], defaultParams: [95],
version: '1.0', version: '1.0',
...@@ -872,7 +865,7 @@ addFuncDef({ ...@@ -872,7 +865,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'removeEmptySeries', name: 'removeEmptySeries',
category: 'Filter', category: 'Filter Series',
version: '1.0', version: '1.0',
}); });
...@@ -904,7 +897,7 @@ addFuncDef({ ...@@ -904,7 +897,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'weightedAverage', name: 'weightedAverage',
category: 'Filter', category: 'Combine',
params: [ params: [
{ name: 'other', type: 'value_or_series', optional: true }, { name: 'other', type: 'value_or_series', optional: true },
{ {
...@@ -926,7 +919,7 @@ addFuncDef({ ...@@ -926,7 +919,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'groupByTags', name: 'groupByTags',
category: 'Special', category: 'Combine',
params: [ params: [
{ {
name: 'function', name: 'function',
...@@ -941,7 +934,7 @@ addFuncDef({ ...@@ -941,7 +934,7 @@ addFuncDef({
addFuncDef({ addFuncDef({
name: 'aliasByTags', name: 'aliasByTags',
category: 'Special', category: 'Alias',
params: [{ name: 'tag', type: 'string', multiple: true }], params: [{ name: 'tag', type: 'string', multiple: true }],
defaultParams: ['tag'], defaultParams: ['tag'],
version: '1.1', version: '1.1',
......
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