mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #280 from syepes/add_functions_v2
Add rangeOfSeries,sortByTotal,removeAbove*,removeBelow*
This commit is contained in:
commit
1a34c2eee3
@ -69,6 +69,11 @@ function (_) {
|
|||||||
category: categories.Combine,
|
category: categories.Combine,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
addFuncDef({
|
||||||
|
name: 'rangeOfSeries',
|
||||||
|
category: categories.Combine
|
||||||
|
});
|
||||||
|
|
||||||
addFuncDef({
|
addFuncDef({
|
||||||
name: 'percentileOfSeries',
|
name: 'percentileOfSeries',
|
||||||
category: categories.Combine,
|
category: categories.Combine,
|
||||||
@ -189,6 +194,11 @@ function (_) {
|
|||||||
category: categories.Special
|
category: categories.Special
|
||||||
});
|
});
|
||||||
|
|
||||||
|
addFuncDef({
|
||||||
|
name: 'sortByTotal',
|
||||||
|
category: categories.Special
|
||||||
|
});
|
||||||
|
|
||||||
addFuncDef({
|
addFuncDef({
|
||||||
name: 'aliasByMetric',
|
name: 'aliasByMetric',
|
||||||
category: categories.Special,
|
category: categories.Special,
|
||||||
@ -421,6 +431,34 @@ function (_) {
|
|||||||
defaultParams: [5]
|
defaultParams: [5]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
addFuncDef({
|
||||||
|
name: 'removeAbovePercentile',
|
||||||
|
category: categories.Filter,
|
||||||
|
params: [ { name: "n", type: "int" } ],
|
||||||
|
defaultParams: [5]
|
||||||
|
});
|
||||||
|
|
||||||
|
addFuncDef({
|
||||||
|
name: 'removeAboveValue',
|
||||||
|
category: categories.Filter,
|
||||||
|
params: [ { name: "n", type: "int" } ],
|
||||||
|
defaultParams: [5]
|
||||||
|
});
|
||||||
|
|
||||||
|
addFuncDef({
|
||||||
|
name: 'removeBelowPercentile',
|
||||||
|
category: categories.Filter,
|
||||||
|
params: [ { name: "n", type: "int" } ],
|
||||||
|
defaultParams: [5]
|
||||||
|
});
|
||||||
|
|
||||||
|
addFuncDef({
|
||||||
|
name: 'removeBelowValue',
|
||||||
|
category: categories.Filter,
|
||||||
|
params: [ { name: "n", type: "int" } ],
|
||||||
|
defaultParams: [5]
|
||||||
|
});
|
||||||
|
|
||||||
_.each(categories, function(funcList, catName) {
|
_.each(categories, function(funcList, catName) {
|
||||||
categories[catName] = _.sortBy(funcList, 'name');
|
categories[catName] = _.sortBy(funcList, 'name');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user