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

Commit

Permalink
If no tag matches, just emit some default message.
Browse files Browse the repository at this point in the history
  • Loading branch information
pilhuhn committed Mar 15, 2016
1 parent 2294f7e commit c364d91
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 c364d91

Please sign in to comment.