Added feature request "predict value" in moving averages pipeline agg (#5689)

issue-id: #5688
This commit is contained in:
vaibhavinbayarea
2016-12-07 01:47:46 -08:00
committed by Torkel Ödegaard
parent d28726be06
commit 24172fca01
2 changed files with 7 additions and 1 deletions

View File

@@ -53,6 +53,11 @@
<input type="text" class="gf-form-input max-width-12" ng-change="onChangeInternal()" ng-model="agg.settings.model" blur="onChange()" spellcheck='false'>
</div>
<div class="gf-form offset-width-7" ng-if="agg.type === 'moving_avg'">
<label class="gf-form-label width-10">Predict</label>
<input type="number" class="gf-form-input max-width-12" ng-model="agg.settings.predict" ng-blur="onChangeInternal()" spellcheck='false'>
</div>
<div class="gf-form offset-width-7" ng-if="agg.type === 'percentiles'">
<label class="gf-form-label width-10">Percentiles</label>
<input type="text" class="gf-form-input max-width-12" ng-model="agg.settings.percents" array-join ng-blur="onChange()"></input>

View File

@@ -72,7 +72,8 @@ function (_) {
pipelineOptions: {
'moving_avg' : [
{text: 'window', default: 5},
{text: 'model', default: 'simple'}
{text: 'model', default: 'simple'},
{text: 'predict', default: 0}
],
'derivative': [
{text: 'unit', default: undefined},