From 29d7d6994a5a394e8bc6216057d698b949d688bd Mon Sep 17 00:00:00 2001 From: Raul Simiciuc Date: Mon, 13 Oct 2014 13:43:25 +0100 Subject: [PATCH] added reset value --- src/app/partials/opentsdb/editor.html | 13 +++++++++++++ src/app/services/opentsdb/opentsdbDatasource.js | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/app/partials/opentsdb/editor.html b/src/app/partials/opentsdb/editor.html index 4c12ac09b87..51a575d933c 100644 --- a/src/app/partials/opentsdb/editor.html +++ b/src/app/partials/opentsdb/editor.html @@ -102,6 +102,19 @@ ng-blur="targetBlur()" /> +
  • + Counter Reset Value: +
  • +
  • + +
  • Alias:
  • diff --git a/src/app/services/opentsdb/opentsdbDatasource.js b/src/app/services/opentsdb/opentsdbDatasource.js index a497d23c119..0cf3e5f1148 100644 --- a/src/app/services/opentsdb/opentsdbDatasource.js +++ b/src/app/services/opentsdb/opentsdbDatasource.js @@ -138,7 +138,11 @@ function (angular, _, kbn) { }; if (target.counterMax && target.counterMax.length) { - query.rateOptions['counterMax'] = parseInt(target.counterMax); + query.rateOptions.counterMax = parseInt(target.counterMax); + } + + if (target.counterResetValue && target.counterResetValue.length) { + query.rateOptions.resetValue = parseInt(target.counterResetValue); } }