grafana/emails/templates/partials/alerting/summary.mjml
Gilles De Mey ea27eca147
Email: Use MJML email templates (#57751)
Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>
2022-11-17 21:41:46 +01:00

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>
&nbsp;and&nbsp;
<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>