|
|
@ -1,18 +1,18 @@ |
|
|
|
<div class="section gf-form-group"> |
|
|
|
<div class="section gf-form-group"> |
|
|
|
<div class="gf-form"> |
|
|
|
<div class="gf-form"> |
|
|
|
<label class="gf-form-label query-keyword"> |
|
|
|
<label class="gf-form-label query-keyword width-6"> |
|
|
|
Name |
|
|
|
Name |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
<input |
|
|
|
<input |
|
|
|
type="text" class="gf-form-input" |
|
|
|
type="text" class="gf-form-input width-12" |
|
|
|
ng-model="analyticUnit.name" |
|
|
|
ng-model="analyticUnit.name" |
|
|
|
ng-blur="ctrl.onAnalyticUnitChange(analyticUnit)" |
|
|
|
ng-blur="ctrl.onAnalyticUnitChange(analyticUnit)" |
|
|
|
> |
|
|
|
> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="gf-form"> |
|
|
|
<div class="gf-form"> |
|
|
|
<label class="gf-form-label query-keyword"> Type </label> |
|
|
|
<label class="gf-form-label query-keyword width-6"> Type </label> |
|
|
|
<div class="gf-form-select-wrapper"> |
|
|
|
<div class="gf-form-select-wrapper"> |
|
|
|
<select class="gf-form-input" |
|
|
|
<select class="gf-form-input width-12" |
|
|
|
ng-model="analyticUnit.type" |
|
|
|
ng-model="analyticUnit.type" |
|
|
|
ng-options="type.value as type.name for type in ctrl.analyticUnitTypes[analyticUnit.detectorType]" |
|
|
|
ng-options="type.value as type.name for type in ctrl.analyticUnitTypes[analyticUnit.detectorType]" |
|
|
|
ng-disabled="true" |
|
|
|
ng-disabled="true" |
|
|
@ -23,7 +23,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="section gf-form-group"> |
|
|
|
<div class="section gf-form-group"> |
|
|
|
<div class="gf-form"> |
|
|
|
<div class="gf-form"> |
|
|
|
<label class="gf-form-label query-keyword"> Positive Color </label> |
|
|
|
<label class="gf-form-label query-keyword width-6"> Positive Color </label> |
|
|
|
<label class="gf-form-label"> |
|
|
|
<label class="gf-form-label"> |
|
|
|
<color-picker |
|
|
|
<color-picker |
|
|
|
color="analyticUnit.labeledColor" |
|
|
|
color="analyticUnit.labeledColor" |
|
|
@ -35,7 +35,7 @@ |
|
|
|
<div class="gf-form" |
|
|
|
<div class="gf-form" |
|
|
|
ng-if="analyticUnit.detectorType === 'pattern' || analyticUnit.detectorType === 'anomaly'" |
|
|
|
ng-if="analyticUnit.detectorType === 'pattern' || analyticUnit.detectorType === 'anomaly'" |
|
|
|
> |
|
|
|
> |
|
|
|
<label class="gf-form-label query-keyword"> Negative Color </label> |
|
|
|
<label class="gf-form-label query-keyword width-6"> Negative Color </label> |
|
|
|
<label class="gf-form-label"> |
|
|
|
<label class="gf-form-label"> |
|
|
|
<color-picker |
|
|
|
<color-picker |
|
|
|
color="analyticUnit.deletedColor" |
|
|
|
color="analyticUnit.deletedColor" |
|
|
@ -48,7 +48,7 @@ |
|
|
|
<div class="section gf-form-group" ng-if="analyticUnit.detectorType === 'threshold'"> |
|
|
|
<div class="section gf-form-group" ng-if="analyticUnit.detectorType === 'threshold'"> |
|
|
|
<!-- TODO: move analytic-unit-specific fields rendering to class --> |
|
|
|
<!-- TODO: move analytic-unit-specific fields rendering to class --> |
|
|
|
<div class="gf-form"> |
|
|
|
<div class="gf-form"> |
|
|
|
<label class="gf-form-label query-keyword"> Condition </label> |
|
|
|
<label class="gf-form-label query-keyword width-6"> Condition </label> |
|
|
|
<select class="gf-form-input" |
|
|
|
<select class="gf-form-input" |
|
|
|
ng-class="{ |
|
|
|
ng-class="{ |
|
|
|
'width-5': analyticUnit.condition !== 'NO_DATA', |
|
|
|
'width-5': analyticUnit.condition !== 'NO_DATA', |
|
|
@ -69,12 +69,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="section gf-form-group" ng-if="analyticUnit.detectorType === 'anomaly'"> |
|
|
|
<div class="section gf-form-group" ng-if="analyticUnit.detectorType === 'anomaly'"> |
|
|
|
<div class="gf-form"> |
|
|
|
<div class="gf-form"> |
|
|
|
<label class="gf-form-label query-keyword"> |
|
|
|
<label class="gf-form-label query-keyword width-6"> |
|
|
|
Alpha |
|
|
|
Alpha |
|
|
|
|
|
|
|
|
|
|
|
<i class="fa fa-info" bs-tooltip="'Takes value from 0 to 1. Less Alpha means smoother bounds'"></i> |
|
|
|
<i class="fa fa-info" bs-tooltip="'Takes value from 0 to 1. Less Alpha means smoother bounds'"></i> |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
<input class="gf-form-input" |
|
|
|
<input class="gf-form-input width-12" |
|
|
|
min="0" |
|
|
|
min="0" |
|
|
|
max="1" |
|
|
|
max="1" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
@ -84,12 +84,12 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="gf-form"> |
|
|
|
<div class="gf-form"> |
|
|
|
<label class="gf-form-label query-keyword"> |
|
|
|
<label class="gf-form-label query-keyword width-6"> |
|
|
|
Сonfidence |
|
|
|
Сonfidence |
|
|
|
|
|
|
|
|
|
|
|
<i class="fa fa-info" bs-tooltip="'Bounds for the metric'"></i> |
|
|
|
<i class="fa fa-info" bs-tooltip="'Bounds for the metric'"></i> |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
<input class="gf-form-input" |
|
|
|
<input class="gf-form-input width-12" |
|
|
|
min="0" |
|
|
|
min="0" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
ng-model="analyticUnit.confidence" |
|
|
|
ng-model="analyticUnit.confidence" |
|
|
|