forked from inCaller/prometheus_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.tmpl
36 lines (30 loc) · 866 Bytes
/
default.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{{.CommonAnnotations}}
{{.CommonLabels}}
{{.ExternalURL}}
{{.GroupLabels}}
{{.Receiver}}
{{.Status}}
<b>Active Alert List:</b>
{{ range $val := .Alerts -}}
{{$val}}
{{ end}}
Version:{{.Version}}
{{/*Possible variable of template
Alerts []Alert
CommonAnnotations map[string]interface{}
CommonLabels map[string]interface{}
ExternalURL string
GroupKey int
GroupLabels map[string]interface{}
Receiver string
Status string
Version
SubVariable Alert use make test for testing this
Annotations map[string]interface{}
EndsAt string
GeneratorURL string `
Labels map[string]interface{}
StartsAt string
All MAP params are iterable with range.
About go template language take look:https://golang.org/pkg/text/template/
*/}}