浏览代码

feat(alerting): add median reducer to frontend

bergquist 9 年之前
父节点
当前提交
56156fcd7f
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      public/app/features/alerting/alert_def.ts
  2. 1 1
      public/app/features/alerting/partials/alert_tab.html

+ 1 - 0
public/app/features/alerting/alert_def.ts

@@ -40,6 +40,7 @@ var reducerTypes = [
   {text: 'sum()' , value: 'sum'},
   {text: 'count()', value: 'count'},
   {text: 'last()', value: 'last'},
+  {text: 'median()', value: 'median'},
 ];
 
 var noDataModes = [

+ 1 - 1
public/app/features/alerting/partials/alert_tab.html

@@ -42,7 +42,7 @@
 						<span class="gf-form-label query-keyword width-5" ng-if="$index===0">WHEN</span>
 					</div>
           <div class="gf-form">
-						<query-part-editor class="gf-form-label query-part width-5" part="conditionModel.reducerPart" handle-event="ctrl.handleReducerPartEvent(conditionModel, $event)">
+						<query-part-editor class="gf-form-label query-part width-6" part="conditionModel.reducerPart" handle-event="ctrl.handleReducerPartEvent(conditionModel, $event)">
 						</query-part-editor>
             <span class="gf-form-label query-keyword">OF</span>
 					</div>