mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 04:59:15 -06:00
ea27eca147
Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>
29 lines
746 B
XML
29 lines
746 B
XML
<mj-raw>
|
|
{{ $numberOfFiringInstance := (len .Alerts.Firing) }}
|
|
{{ $numberOfResolvedAlerts := (len .Alerts.Resolved) }}
|
|
</mj-raw>
|
|
|
|
<mj-preview>
|
|
<mj-raw>
|
|
{{ if $numberOfFiringInstance }}
|
|
</mj-raw>
|
|
<strong>{{ $numberOfFiringInstance }} firing</strong> alert {{ $numberOfFiringInstance| plural "instance" "instances" }}
|
|
<mj-raw>
|
|
{{ end }}
|
|
</mj-raw>
|
|
<mj-raw>
|
|
{{ if and $numberOfFiringInstance $numberOfResolvedAlerts }}
|
|
</mj-raw>
|
|
and
|
|
<mj-raw>
|
|
{{ end }}
|
|
</mj-raw>
|
|
<mj-raw>
|
|
{{ if $numberOfResolvedAlerts }}
|
|
</mj-raw>
|
|
<strong>{{ $numberOfResolvedAlerts }} resolved</strong> alert {{ $numberOfResolvedAlerts| plural "instance" "instances" }}
|
|
<mj-raw>
|
|
{{ end }}
|
|
</mj-raw>
|
|
</mj-preview>
|