|
@@ -43,14 +43,18 @@
|
|
|
</ul>
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="tight-form-list" role="menu">
|
|
<ul class="tight-form-list" role="menu">
|
|
|
|
|
+ <li class="tight-form-item" style="width: 86px">
|
|
|
|
|
+ Metric
|
|
|
|
|
+ </li>
|
|
|
<li>
|
|
<li>
|
|
|
<input type="text"
|
|
<input type="text"
|
|
|
- class="tight-form-input"
|
|
|
|
|
|
|
+ class="input-large tight-form-input"
|
|
|
ng-model="target.metric"
|
|
ng-model="target.metric"
|
|
|
spellcheck='false'
|
|
spellcheck='false'
|
|
|
bs-typeahead="suggestMetrics"
|
|
bs-typeahead="suggestMetrics"
|
|
|
placeholder="metric name"
|
|
placeholder="metric name"
|
|
|
data-min-length=0 data-items=100
|
|
data-min-length=0 data-items=100
|
|
|
|
|
+ ng-model-onblur
|
|
|
ng-blur="targetBlur()"
|
|
ng-blur="targetBlur()"
|
|
|
>
|
|
>
|
|
|
<a bs-tooltip="target.errors.metric"
|
|
<a bs-tooltip="target.errors.metric"
|
|
@@ -75,49 +79,7 @@
|
|
|
</a>
|
|
</a>
|
|
|
</li>
|
|
</li>
|
|
|
|
|
|
|
|
- <li class="tight-form-item">
|
|
|
|
|
- Rate:
|
|
|
|
|
- <input type="checkbox"
|
|
|
|
|
- class="tight-form-checkbox"
|
|
|
|
|
- ng-model="target.shouldComputeRate"
|
|
|
|
|
- ng-change="targetBlur()"
|
|
|
|
|
- >
|
|
|
|
|
- </li>
|
|
|
|
|
- <li class="tight-form-item" ng-hide="!target.shouldComputeRate">
|
|
|
|
|
- Counter:
|
|
|
|
|
- <input type="checkbox"
|
|
|
|
|
- class="tight-form-checkbox"
|
|
|
|
|
- ng-disabled="!target.shouldComputeRate"
|
|
|
|
|
- ng-model="target.isCounter"
|
|
|
|
|
- ng-change="targetBlur()">
|
|
|
|
|
- </li>
|
|
|
|
|
- <li class="tight-form-item" ng-hide="!target.isCounter">
|
|
|
|
|
- Counter Max:
|
|
|
|
|
- </li>
|
|
|
|
|
- <li ng-hide="!target.isCounter">
|
|
|
|
|
- <input type="text"
|
|
|
|
|
- class="tight-form-input input-medium"
|
|
|
|
|
- ng-disabled="!target.shouldComputeRate"
|
|
|
|
|
- ng-model="target.counterMax"
|
|
|
|
|
- spellcheck='false'
|
|
|
|
|
- placeholder="Counter max value"
|
|
|
|
|
- ng-blur="targetBlur()"
|
|
|
|
|
- />
|
|
|
|
|
- </li>
|
|
|
|
|
- <li class="tight-form-item" ng-hide="!target.isCounter">
|
|
|
|
|
- Counter Reset Value:
|
|
|
|
|
- </li>
|
|
|
|
|
- <li ng-hide="!target.isCounter">
|
|
|
|
|
- <input type="text"
|
|
|
|
|
- class="tight-form-input input-medium"
|
|
|
|
|
- ng-disabled="!target.shouldComputeRate"
|
|
|
|
|
- ng-model="target.counterResetValue"
|
|
|
|
|
- spellcheck='false'
|
|
|
|
|
- placeholder="Counter reset value"
|
|
|
|
|
- ng-blur="targetBlur()"
|
|
|
|
|
- />
|
|
|
|
|
- </li>
|
|
|
|
|
- <li class="tight-form-item">
|
|
|
|
|
|
|
+ <li class="tight-form-item">
|
|
|
Alias:
|
|
Alias:
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
@@ -137,32 +99,30 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tight-form">
|
|
<div class="tight-form">
|
|
|
- <ul class="tight-form-list" role="menu">
|
|
|
|
|
|
|
+ <ul class="tight-form-list" role="menu">
|
|
|
|
|
+ <li class="tight-form-item">
|
|
|
|
|
+ <i class="fa fa-eye invisible"></i>
|
|
|
|
|
+ </li>
|
|
|
|
|
|
|
|
- <li class="tight-form-item">
|
|
|
|
|
- Downsample:
|
|
|
|
|
- <input type="checkbox"
|
|
|
|
|
- class="tight-form-checkbox"
|
|
|
|
|
- ng-model="target.shouldDownsample"
|
|
|
|
|
- ng-change="targetBlur(target)"
|
|
|
|
|
- >
|
|
|
|
|
- </li>
|
|
|
|
|
|
|
+ <li class="tight-form-item" style="width: 86px">
|
|
|
|
|
+ Down sample
|
|
|
|
|
+ </li>
|
|
|
|
|
|
|
|
- <li ng-hide="!target.shouldDownsample">
|
|
|
|
|
|
|
+ <li>
|
|
|
<input type="text"
|
|
<input type="text"
|
|
|
- class="input-small tight-form-input"
|
|
|
|
|
- ng-disabled="!target.shouldDownsample"
|
|
|
|
|
|
|
+ class="input-large tight-form-input"
|
|
|
ng-model="target.downsampleInterval"
|
|
ng-model="target.downsampleInterval"
|
|
|
|
|
+ ng-model-onblur
|
|
|
ng-change="targetBlur()"
|
|
ng-change="targetBlur()"
|
|
|
- placeholder="interval"
|
|
|
|
|
|
|
+ placeholder="interval (empty = auto)"
|
|
|
>
|
|
>
|
|
|
</li>
|
|
</li>
|
|
|
|
|
|
|
|
- <li class="tight-form-item" ng-hide="!target.shouldDownsample">
|
|
|
|
|
|
|
+ <li class="tight-form-item">
|
|
|
Aggregator
|
|
Aggregator
|
|
|
</li>
|
|
</li>
|
|
|
|
|
|
|
|
- <li ng-hide="!target.shouldDownsample">
|
|
|
|
|
|
|
+ <li>
|
|
|
<select ng-model="target.downsampleAggregator"
|
|
<select ng-model="target.downsampleAggregator"
|
|
|
class="tight-form-input input-small"
|
|
class="tight-form-input input-small"
|
|
|
ng-options="agg for agg in aggregators"
|
|
ng-options="agg for agg in aggregators"
|
|
@@ -170,8 +130,25 @@
|
|
|
</select>
|
|
</select>
|
|
|
</li>
|
|
</li>
|
|
|
|
|
|
|
|
- <li class="tight-form-item">
|
|
|
|
|
- Tags:
|
|
|
|
|
|
|
+ <li class="tight-form-item">
|
|
|
|
|
+ Disable downsampling
|
|
|
|
|
+ <input class="cr1" id="target.disableDownsampling" type="checkbox"
|
|
|
|
|
+ ng-model="target.disableDownsampling" ng-checked="target.disableDownsampling" ng-change="targetBlur()">
|
|
|
|
|
+ <label for="target.disableDownsampling" class="cr1"></label>
|
|
|
|
|
+ </li>
|
|
|
|
|
+
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ <div class="clearfix"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="tight-form">
|
|
|
|
|
+ <ul class="tight-form-list" role="menu">
|
|
|
|
|
+ <li class="tight-form-item">
|
|
|
|
|
+ <i class="fa fa-eye invisible"></i>
|
|
|
|
|
+ </li>
|
|
|
|
|
+
|
|
|
|
|
+ <li class="tight-form-item" style="width: 86px">
|
|
|
|
|
+ Tags
|
|
|
</li>
|
|
</li>
|
|
|
<li ng-repeat="(key, value) in target.tags track by $index" class="tight-form-item">
|
|
<li ng-repeat="(key, value) in target.tags track by $index" class="tight-form-item">
|
|
|
{{key}} = {{value}}
|
|
{{key}} = {{value}}
|
|
@@ -202,7 +179,7 @@
|
|
|
ng-model="target.currentTagValue"
|
|
ng-model="target.currentTagValue"
|
|
|
placeholder="value">
|
|
placeholder="value">
|
|
|
<a ng-click="addTag()">
|
|
<a ng-click="addTag()">
|
|
|
- <i class="fa fa-plus"></i>
|
|
|
|
|
|
|
+ add tag
|
|
|
</a>
|
|
</a>
|
|
|
<a bs-tooltip="target.errors.tags"
|
|
<a bs-tooltip="target.errors.tags"
|
|
|
style="color: rgb(229, 189, 28)"
|
|
style="color: rgb(229, 189, 28)"
|
|
@@ -213,5 +190,60 @@
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="tight-form">
|
|
|
|
|
+ <ul class="tight-form-list" role="menu">
|
|
|
|
|
+ <li class="tight-form-item">
|
|
|
|
|
+ <i class="fa fa-eye invisible"></i>
|
|
|
|
|
+ </li>
|
|
|
|
|
+
|
|
|
|
|
+ <li class="tight-form-item" style="width: 86px">
|
|
|
|
|
+ Rate
|
|
|
|
|
+ <input class="cr1" id="target.shouldComputeRate" type="checkbox"
|
|
|
|
|
+ ng-model="target.shouldComputeRate" ng-checked="target.shouldComputeRate" ng-change="targetBlur()">
|
|
|
|
|
+ <label for="target.shouldComputeRate" class="cr1"></label>
|
|
|
|
|
+ </li>
|
|
|
|
|
+
|
|
|
|
|
+ <li class="tight-form-item" ng-hide="!target.shouldComputeRate">
|
|
|
|
|
+ Counter
|
|
|
|
|
+ <input class="cr1" id="target.isCounter" type="checkbox"
|
|
|
|
|
+ ng-model="target.isCounter" ng-checked="target.isCounter" ng-change="targetBlur()">
|
|
|
|
|
+ <label for="target.isCounter" class="cr1"></label>
|
|
|
|
|
+ </li>
|
|
|
|
|
+
|
|
|
|
|
+ <li class="tight-form-item" ng-hide="!target.isCounter">
|
|
|
|
|
+ Counter Max:
|
|
|
|
|
+ </li>
|
|
|
|
|
+
|
|
|
|
|
+ <li ng-hide="!target.isCounter">
|
|
|
|
|
+ <input type="text"
|
|
|
|
|
+ class="tight-form-input input-small"
|
|
|
|
|
+ ng-disabled="!target.shouldComputeRate"
|
|
|
|
|
+ ng-model="target.counterMax"
|
|
|
|
|
+ spellcheck='false'
|
|
|
|
|
+ placeholder="max value"
|
|
|
|
|
+ ng-model-onblur
|
|
|
|
|
+ ng-blur="targetBlur()"
|
|
|
|
|
+ />
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="tight-form-item" ng-hide="!target.isCounter">
|
|
|
|
|
+ Reset Value:
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li ng-hide="!target.isCounter">
|
|
|
|
|
+ <input type="text"
|
|
|
|
|
+ class="tight-form-input input-small"
|
|
|
|
|
+ ng-disabled="!target.shouldComputeRate"
|
|
|
|
|
+ ng-model="target.counterResetValue"
|
|
|
|
|
+ spellcheck='false'
|
|
|
|
|
+ placeholder="reset value"
|
|
|
|
|
+ ng-model-onblur
|
|
|
|
|
+ ng-blur="targetBlur()"
|
|
|
|
|
+ />
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="clearfix"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|