Просмотр исходного кода

Graphite: Added cumulative and minimumBelow graphite functions, Closes #1297

Torkel Ödegaard 11 лет назад
Родитель
Сommit
7c6f0ad445
2 измененных файлов с 19 добавлено и 0 удалено
  1. 5 0
      CHANGELOG.md
  2. 14 0
      src/app/features/graphite/gfunc.js

+ 5 - 0
CHANGELOG.md

@@ -1,3 +1,8 @@
+# 2.0.0 (unreleased)
+
+**Enhancements**
+- [Issue #1297](https://github.com/grafana/grafana/issues/1297). Graphite: Added cumulative and minimumBelow graphite functions
+
 # 1.9.1 (2014-12-29)
 
 **Enhancements**

+ 14 - 0
src/app/features/graphite/gfunc.js

@@ -223,6 +223,13 @@ function (_, $) {
     defaultParams: ['max']
   });
 
+  addFuncDef({
+    name: "cumulative",
+    category: categories.Special,
+    params: [],
+    defaultParams: []
+  });
+
   addFuncDef({
     name: "groupByNode",
     category: categories.Special,
@@ -467,6 +474,13 @@ function (_, $) {
     defaultParams: [0]
   });
 
+  addFuncDef({
+    name: 'minimumBelow',
+    category: categories.Filter,
+    params: [{ name: "value", type: "int" }],
+    defaultParams: [0]
+  });
+
   addFuncDef({
     name: 'limit',
     category: categories.Filter,