2015-11-06 16:26:06 +00:00
|
|
|
|
<div class="alert-item" ng-controller="AlertCtrl">
|
2015-11-06 17:17:41 +00:00
|
|
|
|
<div class="overview group">
|
|
|
|
|
<div class="labels left" ng-click="toggleDetails()">
|
2015-11-09 10:09:32 +00:00
|
|
|
|
<span ng-repeat="(name, value) in alert.labels | orderBy:name">
|
|
|
|
|
<span ng-hide="hiddenLabels.indexOf(name) >= 0" class="lbl {{ name == 'alertname' ? 'lbl-highlight' : '' }}" outline>
|
2015-11-06 17:17:41 +00:00
|
|
|
|
{{ name }} = '{{ value }}'
|
|
|
|
|
</span>
|
2015-10-22 09:10:59 +00:00
|
|
|
|
</span>
|
2015-11-06 17:17:41 +00:00
|
|
|
|
</div>
|
2015-11-06 16:26:06 +00:00
|
|
|
|
|
|
|
|
|
<div class="right">
|
2015-11-06 16:35:37 +00:00
|
|
|
|
<button class="silence-button" type="secondary" ng-click="toggleSilenceForm()" small upper>Silence</button>
|
2015-11-06 16:26:06 +00:00
|
|
|
|
</div>
|
2015-10-21 14:34:38 +00:00
|
|
|
|
</div>
|
2015-11-06 16:26:06 +00:00
|
|
|
|
|
2015-11-06 16:35:37 +00:00
|
|
|
|
<div class="silence-alert" ng-show="showSilenceForm">
|
|
|
|
|
<silence-form silence="silence"></silence-form>
|
2015-11-06 16:26:06 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
2015-11-06 17:17:41 +00:00
|
|
|
|
<div class="detail group" ng-show="showDetails">
|
2015-11-06 16:26:06 +00:00
|
|
|
|
<table class="table-flat">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>active</td>
|
|
|
|
|
<td>
|
2015-11-09 10:09:32 +00:00
|
|
|
|
<span>{{ alert.startsAt | date:'yyyy-MM-dd HH:mm' }}</span>
|
2015-11-06 16:26:06 +00:00
|
|
|
|
–
|
|
|
|
|
<span ng-hide="a.endsAt == '0001-01-01T00:00:00Z'">
|
2015-11-09 10:09:32 +00:00
|
|
|
|
<span class="date">{{ alert.endsAt | date:'yyyy-MM-dd' }},</span> <span class="time">{{ alert.endsAt | date:'HH:mm' }}</span>
|
2015-11-06 16:26:06 +00:00
|
|
|
|
</span>
|
2015-11-09 10:09:32 +00:00
|
|
|
|
<span ng-show="alert.endsAt == '0001-01-01T00:00:00Z'">
|
2015-11-06 16:26:06 +00:00
|
|
|
|
<span class="time">now</span>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>annotations</td>
|
|
|
|
|
<td>
|
|
|
|
|
<table class="table-flat">
|
|
|
|
|
<tbody>
|
2015-11-09 10:09:32 +00:00
|
|
|
|
<tr ng-repeat="(name, val) in alert.annotations | orderBy:name">
|
2015-11-06 16:26:06 +00:00
|
|
|
|
<td style="padding-right: 3em"><em>{{ name }}</em></td>
|
|
|
|
|
<td style="white-space: pre-line;">{{ val }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- <div class="container-right group">
|
2015-10-21 14:34:38 +00:00
|
|
|
|
<div class="right">
|
2015-10-27 18:54:21 +00:00
|
|
|
|
<button type="secondary" ng-click="toggleSilenceForm()" small>Silence</button>
|
2015-11-02 17:51:54 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="left">
|
2015-10-27 18:54:21 +00:00
|
|
|
|
<silence-form ng-show="showSilenceForm" silence="silence"></silence-form>
|
2015-11-02 17:51:54 +00:00
|
|
|
|
|
|
|
|
|
Details: <input class="collapse" ng-class="{open:collapse}" type="checkbox" ng-model="collapse"></input>
|
|
|
|
|
<div class="left" ng-show="collapse">
|
|
|
|
|
<table class="table-flat">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr ng-repeat="(name, val) in a.annotations | orderBy:name">
|
|
|
|
|
<td style="padding-right: 3em"><em>{{ name }}</em></td>
|
|
|
|
|
<td style="white-space: pre-line;">{{ val }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2015-10-21 14:34:38 +00:00
|
|
|
|
</div>
|
2015-11-06 16:26:06 +00:00
|
|
|
|
</div> -->
|
2015-10-21 14:34:38 +00:00
|
|
|
|
</div>
|