alertmanager/ui/app/partials/alerts.html
2015-11-09 12:33:14 +01:00

23 lines
741 B
HTML

<div>
<select class="select" ng-model="destinations" multiple>
<option ng-repeat="dest in allDestinations" value="{{ dest }}">{{ dest }}</option>
</select>
</div>
<div id="alert-groups" ng-controller="AlertsCtrl">
<div class="alert-group" ng-repeat="group in groups">
<div class="alert-group-header group">
<span ng-repeat="(ln, lv) in group.labels" class="lbl {{ ln == 'alertname' ? 'lbl-highlight' : '' }}">
{{ ln }} = '{{ lv }}'
</span>
</div>
<div ng-repeat="g in group.groups">
<div ng-show="destinations.indexOf(g.routeOpts.sendTo) >= 0" ng-show"g.alerts">
<div ng-repeat="a in g.alerts">
<alert class="list-item" alert="a" group="group.labels"></alert>
</div>
</div>
</div>
</div>
</div>