Browse Source

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

Torkel Ödegaard 11 năm trước cách đây
mục cha
commit
384687e19b
2 tập tin đã thay đổi với 3 bổ sung0 xóa
  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
 - 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)
+- Added parameter to keepLastValue graphite function definition (default 100), Closes #459
 
 # Fixes
 - 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({
     name: 'keepLastValue',
     category: categories.Special,
+    params: [ { name: "n", type: "int", } ],
+    defaultParams: [100]
   });
 
   addFuncDef({