mirror of
https://github.com/Luzifer/mondash.git
synced 2024-12-23 04:21:18 +00:00
Colorize current value label according to metric status
This commit is contained in:
parent
e49556277c
commit
ee8770b9d8
1 changed files with 13 additions and 1 deletions
|
@ -93,7 +93,19 @@
|
|||
<div class="col-md-9">
|
||||
<h4>{{ metric.Title }}</h4>
|
||||
<p>{{ metric.Description }}</p>
|
||||
<span><span class="label label-info">Current Value: {{ metric.Value }}</span> {{ metric.MadMultiplier }} <abbr title="Median Absolute Deviation">MAD</abbr> above the Median ({{ metric.Median }})</span>
|
||||
<span>
|
||||
{% if metric.Status == "OK" %}
|
||||
<span class="label label-success">Current Value: {{ metric.Value }}</span>
|
||||
{% elif metric.Status == "Warning" %}
|
||||
<span class="label label-warning">Current Value: {{ metric.Value }}</span>
|
||||
{% elif metric.Status == "Critical" %}
|
||||
<span class="label label-danger">Current Value: {{ metric.Value }}</span>
|
||||
{% else %}
|
||||
<span class="label label-info">Current Value: {{ metric.Value }}</span>
|
||||
{% endif %}
|
||||
{{ metric.MadMultiplier }} <abbr title="Median Absolute Deviation">MAD</abbr>
|
||||
above the Median ({{ metric.Median }})
|
||||
</span>
|
||||
<div class="ct-chart {{metric.MetricID}} .ct-double-octave"></div>
|
||||
<script>
|
||||
var data = {
|
||||
|
|
Loading…
Reference in a new issue