Преглед изворни кода

Added parameter to keepLastValue graphite function definition (default 100), Closes #459

Torkel Ödegaard пре 11 година
родитељ
комит
384687e19b
2 измењених фајлова са 3 додато и 0 уклоњено
  1. 1 0
      CHANGELOG.md
  2. 2 0
      src/app/services/graphite/gfunc.js

+ 1 - 0
CHANGELOG.md

@@ -4,6 +4,7 @@ vNext
 - Refactoring of filterSrv (Issue #428), thx @Tetha
 - Refactoring of filterSrv (Issue #428), thx @Tetha
 - New config for playlist feature. Set playlist_timespan to set default playlist interval (Issue #445) - thx @rmca
 - New config for playlist feature. Set playlist_timespan to set default playlist interval (Issue #445) - thx @rmca
 - New InfluxDB function difference add to function dropdown (PR #455)
 - New InfluxDB function difference add to function dropdown (PR #455)
+- Added parameter to keepLastValue graphite function definition (default 100), Closes #459
 
 
 # Fixes
 # Fixes
 - Filter option loading when having muliple nested filters now works better.
 - Filter option loading when having muliple nested filters now works better.

+ 2 - 0
src/app/services/graphite/gfunc.js

@@ -231,6 +231,8 @@ function (_) {
   addFuncDef({
   addFuncDef({
     name: 'keepLastValue',
     name: 'keepLastValue',
     category: categories.Special,
     category: categories.Special,
+    params: [ { name: "n", type: "int", } ],
+    defaultParams: [100]
   });
   });
 
 
   addFuncDef({
   addFuncDef({