mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #218 from mavimo/feature/influx-query-functions
[InfluxDB] Added more query functions
This commit is contained in:
commit
2e1e7462dc
@ -15,6 +15,7 @@ function (angular) {
|
|||||||
$scope.target.function = 'mean';
|
$scope.target.function = 'mean';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.functions = ['count', 'mean', 'sum', 'min', 'max', 'mode', 'distinct', 'median', 'derivative', 'stddev', 'first', 'last'];
|
||||||
$scope.oldSeries = $scope.target.series;
|
$scope.oldSeries = $scope.target.series;
|
||||||
$scope.$on('typeahead-updated', function(){
|
$scope.$on('typeahead-updated', function(){
|
||||||
$timeout($scope.get_data);
|
$timeout($scope.get_data);
|
||||||
|
@ -74,7 +74,11 @@
|
|||||||
function
|
function
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<select class="input-medium grafana-target-segment-input" ng-change="get_data()" ng-model="target.function" ng-options="f for f in ['mean', 'sum', 'min', 'max', 'median', 'derivative', 'stddev']" ></select>
|
<select class="input-medium grafana-target-segment-input"
|
||||||
|
ng-change="get_data()"
|
||||||
|
ng-model="target.function"
|
||||||
|
ng-options="f for f in functions" ></select>
|
||||||
|
</li>
|
||||||
</li>
|
</li>
|
||||||
<li class="grafana-target-segment">
|
<li class="grafana-target-segment">
|
||||||
group by time
|
group by time
|
||||||
|
Loading…
Reference in New Issue
Block a user