From f35baffbef2ade738885e98b3a3725df56294f31 Mon Sep 17 00:00:00 2001 From: Marco Vito Moscaritolo Date: Sun, 23 Mar 2014 18:52:56 +0100 Subject: [PATCH 1/2] Added more query function in InfluxDB --- src/app/partials/influxdb/editor.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/partials/influxdb/editor.html b/src/app/partials/influxdb/editor.html index 4a6927e5984..2210aa140ce 100644 --- a/src/app/partials/influxdb/editor.html +++ b/src/app/partials/influxdb/editor.html @@ -74,7 +74,7 @@ function
  • - +
  • group by time From 6fb36acc9a668cfc19e7680c3e158d10492a8082 Mon Sep 17 00:00:00 2001 From: Marco Vito Moscaritolo Date: Sun, 23 Mar 2014 20:20:18 +0100 Subject: [PATCH 2/2] Moved function definition out of template. --- src/app/controllers/influxTargetCtrl.js | 1 + src/app/partials/influxdb/editor.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/controllers/influxTargetCtrl.js b/src/app/controllers/influxTargetCtrl.js index 66439c5e757..5d96a280470 100644 --- a/src/app/controllers/influxTargetCtrl.js +++ b/src/app/controllers/influxTargetCtrl.js @@ -15,6 +15,7 @@ function (angular) { $scope.target.function = 'mean'; } + $scope.functions = ['count', 'mean', 'sum', 'min', 'max', 'mode', 'distinct', 'median', 'derivative', 'stddev', 'first', 'last']; $scope.oldSeries = $scope.target.series; $scope.$on('typeahead-updated', function(){ $timeout($scope.get_data); diff --git a/src/app/partials/influxdb/editor.html b/src/app/partials/influxdb/editor.html index 2210aa140ce..d34d6ab5f9b 100644 --- a/src/app/partials/influxdb/editor.html +++ b/src/app/partials/influxdb/editor.html @@ -74,7 +74,11 @@ function
  • - + +
  • group by time