We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
amtool template render
1 parent 80b3cb0 commit 0db1bfaCopy full SHA for 0db1bfa
cli/template_render.go
@@ -24,14 +24,15 @@ import (
24
"github.com/alecthomas/kingpin/v2"
25
26
"github.com/prometheus/alertmanager/template"
27
+ "github.com/prometheus/common/model"
28
)
29
30
var defaultData = template.Data{
31
Receiver: "receiver",
32
Status: "alertstatus",
33
Alerts: template.Alerts{
34
template.Alert{
- Status: "alertstatus",
35
+ Status: string(model.AlertFiring),
36
Labels: template.KV{
37
"label1": "value1",
38
"label2": "value2",
@@ -51,7 +52,7 @@ var defaultData = template.Data{
51
52
Fingerprint: "fingerprint1",
53
},
54
55
+ Status: string(model.AlertResolved),
56
57
"foo": "bar",
58
"baz": "qux",
0 commit comments