|
@@ -13,6 +13,7 @@ function (angular, _, kbn) {
|
|
|
$scope.init = function() {
|
|
$scope.init = function() {
|
|
|
$scope.target.errors = validateTarget($scope.target);
|
|
$scope.target.errors = validateTarget($scope.target);
|
|
|
$scope.aggregators = ['avg', 'sum', 'min', 'max', 'dev', 'zimsum', 'mimmin', 'mimmax'];
|
|
$scope.aggregators = ['avg', 'sum', 'min', 'max', 'dev', 'zimsum', 'mimmin', 'mimmax'];
|
|
|
|
|
+ $scope.fillPolicies = ['none', 'nan', 'null', 'zero'];
|
|
|
|
|
|
|
|
if (!$scope.target.aggregator) {
|
|
if (!$scope.target.aggregator) {
|
|
|
$scope.target.aggregator = 'sum';
|
|
$scope.target.aggregator = 'sum';
|
|
@@ -22,6 +23,10 @@ function (angular, _, kbn) {
|
|
|
$scope.target.downsampleAggregator = 'avg';
|
|
$scope.target.downsampleAggregator = 'avg';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (!$scope.target.downsampleFillPolicy) {
|
|
|
|
|
+ $scope.target.downsampleFillPolicy = 'none';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
$scope.datasource.getAggregators().then(function(aggs) {
|
|
$scope.datasource.getAggregators().then(function(aggs) {
|
|
|
$scope.aggregators = aggs;
|
|
$scope.aggregators = aggs;
|
|
|
});
|
|
});
|