@ -48,7 +48,7 @@ export class AnomalyType {
get name(): string { return this._panelObject.name; }
set pattern(value: string) { this._panelObject.pattern = value; }
get pattern(): string { return this._panelObject.pattern; }
get pattern(): string { return this._panelObject.pattern.split(' ')[0]; }
set confidence(value: number) { this._panelObject.confidence = value; }
get confidence(): number { return this._panelObject.confidence; }
@ -43,7 +43,6 @@ class GraphCtrl extends MetricsPanelCtrl {
datasourceRequest: DatasourceRequest;
patterns: Array<String> = ['General', 'Drops', 'Peaks', 'Jumps'];
patternsLegacy: Array<String> = ['General', 'General approach', 'Drops', 'Peaks', 'Jumps'];
anomalyTypes = []; // TODO: remove it later. Only for alert tab
anomalyController: AnomalyController;
@ -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 for pattern in ctrl.patternsLegacy"
ng-options="pattern as pattern for pattern in ctrl.patterns"
ng-disabled="true"
/>
</div>