Explorar o código

allow multiple params for sumSeriesWithWildcards

Niku Toivola %!s(int64=11) %!d(string=hai) anos
pai
achega
0a561e5aeb
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      src/app/services/graphite/gfunc.js

+ 6 - 1
src/app/services/graphite/gfunc.js

@@ -157,7 +157,12 @@ function (_) {
   addFuncDef({
     name: 'sumSeriesWithWildcards',
     category: categories.Combine,
-    params: [{ name: "node", type: "int" }],
+    params: [
+      { name: "node", type: "int" },
+      { name: "node", type: "int", optional: true },
+      { name: "node", type: "int", optional: true },
+      { name: "node", type: "int", optional: true }
+    ],
     defaultParams: [3]
   });