Improve metrics filtering in query editor.
This commit is contained in:
@@ -57,10 +57,10 @@
|
||||
<select style="width: 10em"
|
||||
class="tight-form-input input-small"
|
||||
ng-change="selectHostGroup()"
|
||||
ng-model="target.hostGroup"
|
||||
bs-tooltip="target.hostGroup.name.length > 25 ? target.hostGroup.name : ''"
|
||||
ng-options="hostgroup.name for hostgroup in metric.groupList" >
|
||||
<option value="">All</option>
|
||||
ng-model="target.group"
|
||||
bs-tooltip="target.group.name.length > 25 ? target.group.name : ''"
|
||||
ng-options="group.visible_name ? group.visible_name : group.name for group in metric.groupList" >
|
||||
<option value="">-- Select host group --</option>
|
||||
</select>
|
||||
<a bs-tooltip="target.errors.metric"
|
||||
style="color: rgb(229, 189, 28)"
|
||||
@@ -75,8 +75,8 @@
|
||||
ng-change="selectHost()"
|
||||
ng-model="target.host"
|
||||
bs-tooltip="target.host.name.length > 25 ? target.host.name : ''"
|
||||
ng-options="host.name for host in metric.hostList" >
|
||||
<option value="">-- select host --</option>
|
||||
ng-options="host.visible_name ? host.visible_name : host.name for host in metric.hostList" >
|
||||
<option value="">-- Select host --</option>
|
||||
</select>
|
||||
<a bs-tooltip="target.errors.metric"
|
||||
style="color: rgb(229, 189, 28)"
|
||||
@@ -91,8 +91,8 @@
|
||||
ng-change="selectApplication()"
|
||||
ng-model="target.application"
|
||||
bs-tooltip="target.application.name.length > 15 ? target.application.name : ''"
|
||||
ng-options="app.name for app in metric.applicationList" >
|
||||
<option value="">All</option>
|
||||
ng-options="app.visible_name ? app.visible_name : app.name for app in metric.applicationList" >
|
||||
<option value="">-- Select application --</option>
|
||||
</select>
|
||||
<a bs-tooltip="target.errors.metric"
|
||||
style="color: rgb(229, 189, 28)"
|
||||
@@ -108,7 +108,7 @@
|
||||
ng-model="target.item"
|
||||
bs-tooltip="target.name.length > 30 ? target.name : ''"
|
||||
ng-options="item.name for item in metric.itemList" >
|
||||
<option value="">--select item--</option>
|
||||
<option value="">-- Select item --</option>
|
||||
</select>
|
||||
<a bs-tooltip="target.errors.metric"
|
||||
style="color: rgb(229, 189, 28)"
|
||||
|
||||
Reference in New Issue
Block a user