Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #873 from hawkular/alert-other
Browse files Browse the repository at this point in the history
If no tag matches, just emit some default message.
  • Loading branch information
mtho11 committed Mar 15, 2016
2 parents 2294f7e + c364d91 commit f590c24
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,17 @@
</div>
<div ng-switch-when="CPU_USAGE_EXCEED">
<strong>CPU alert</strong>: Usage of {{alert.tags.resourceName}} was {{alert.avg * 100 | number : 1}} %.

</div>

<div ng-switch-default>
<strong>Alert</strong>: <code>{{alert}}</code>
<strong>Value</strong> for
{{alert.tags.resourceName}}
was above the threshold ({{alert.threshold | number: 0}}) for
<hk-time-interval hk-time="alert.durationTime"></hk-time-interval>
(until
<span ng-show="alert.isThisYear && alert.isToday">{{alert.end | date:'HH:mm' }}).</span>
<span ng-show="alert.isThisYear && !alert.isToday">{{alert.end | date:'d MMM HH:mm:ss' }}).</span>
<span ng-show="!alert.isThisYear">{{alert.end | date:'d MMM y HH:mm:ss' }}).</span>
The average value was {{alert.avg | number: 0}}.
</div>
</div>

0 comments on commit f590c24

Please sign in to comment.