Browse Source

Enable peaks in analytics tab

master
rozetko 7 years ago
parent
commit
aa2ca94632
  1. 2
      src/module.ts
  2. 4
      src/partials/tab_analytics.html

2
src/module.ts

@ -42,7 +42,7 @@ class GraphCtrl extends MetricsPanelCtrl {
processor: DataProcessor;
datasourceRequest: DatasourceRequest;
patterns: Array<String> = ['General approach', 'Drops', 'Jumps', 'Peaks'];
patterns: Array<String> = ['General approach', 'Drops', 'Peaks', 'Jumps'];
anomalyTypes = []; // TODO: remove it later. Only for alert tab
anomalyController: AnomalyController;

4
src/partials/tab_analytics.html

@ -13,7 +13,7 @@
<div class="gf-form-select-wrapper">
<select class="gf-form-input width-12"
ng-model="anomalyType.pattern"
ng-options="pattern as pattern disable when (pattern !== 'General approach' && pattern !== 'Drops') for pattern in ctrl.patterns"
ng-options="pattern as pattern disable when (pattern !== 'General approach' && pattern !== 'Drops' && pattern !== 'Peaks') for pattern in ctrl.patterns"
ng-disabled="true"
/>
</div>
@ -128,7 +128,7 @@
<div class="gf-form-select-wrapper">
<select class="gf-form-input width-12"
ng-model="ctrl.anomalyController.newAnomalyType.pattern"
ng-options="pattern as pattern disable when (pattern !== 'General approach' && pattern !== 'Drops') for pattern in ctrl.patterns"
ng-options="pattern as pattern disable when (pattern !== 'General approach' && pattern !== 'Drops' && pattern !== 'Peaks') for pattern in ctrl.patterns"
/>
</div>

Loading…
Cancel
Save