Browse Source

162-remove-analytics-types

master
rozetko 7 years ago
parent
commit
f2176bc9a7
  1. 1
      examples/cpu_util.json
  2. 2
      src/module.ts
  3. 15
      src/partials/tab_analytics.html

1
examples/cpu_util.json

@ -34,7 +34,6 @@
"notifications": []
},
"aliasColors": {},
"analyticsType": "Anomaly detection",
"anomalyType": "",
"anomalyTypes": [
{

2
src/module.ts

@ -42,7 +42,6 @@ class GraphCtrl extends MetricsPanelCtrl {
processor: DataProcessor;
datasourceRequest: DatasourceRequest;
analyticsTypes: Array<String> = ['Anomaly detection', 'Pattern Detection (not implemented yet)'];
patterns: Array<String> = ['General approach', 'Peaks', 'Jumps', 'Drops'];
anomalyTypes = []; // TODO: remove it later. Only for alert tab
anomalyController: AnomalyController;
@ -133,7 +132,6 @@ class GraphCtrl extends MetricsPanelCtrl {
seriesOverrides: [],
thresholds: [],
anomalyType: '',
analyticsType: 'Anomaly detection',
};
/** @ngInject */

15
src/partials/tab_analytics.html

@ -1,18 +1,3 @@
<h5> Analytics </h5>
<div class="editor-row">
<div class="section gf-form-group">
<div class="gf-form">
<label class="gf-form-label width-8"> Analytics type </label>
<div class="gf-form-select-wrapper">
<select class="gf-form-input width-12"
ng-model="ctrl.panel.analyticsType"
ng-options="source as source for source in ctrl.analyticsTypes"
/>
</div>
</div>
</div>
</div>
<h5> Anomaly Types </h5>
<div class="editor-row">
<div class="gf-form" ng-repeat="anomalyType in ctrl.anomalyController.anomalyTypes">

Loading…
Cancel
Save