mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 11:44:26 -06:00
8dab3bf36c
* add .TemplateData property to data in order to populate template <title> tags with the compiled subject value * update all templates * re-enable integration test and update implementation to check changes * chore: fmt * add HiddenSubject template func and update text templates * slight performance improvement, only execute subject template once * update template I missed --------- Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
30 lines
400 B
Plaintext
30 lines
400 B
Plaintext
{{HiddenSubject .Subject "{{.Title}}"}}
|
|
|
|
{{.Title}}
|
|
----------------
|
|
|
|
{{.Message}}
|
|
|
|
{{if ne .Error "" }}
|
|
Error message:
|
|
{{.Error}}
|
|
{{end}}
|
|
|
|
{{if ne .State "ok" }}
|
|
{{range .EvalMatches}}
|
|
Metric name:
|
|
{{.Metric}}
|
|
Value:
|
|
{{.Value}}
|
|
{{end}}
|
|
{{end}}
|
|
|
|
View your Alert rule:
|
|
{{.RuleUrl}}"
|
|
|
|
Go to the Alerts page:
|
|
{{.AlertPageUrl}}
|
|
|
|
|
|
Sent by Grafana v{{.BuildVersion}} (c) {{now | date "2006"}} Grafana Labs
|