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 729c072Copy full SHA for 729c072
cli/template_render.go
@@ -22,6 +22,7 @@ import (
22
"time"
23
24
"github.com/alecthomas/kingpin/v2"
25
+ "github.com/prometheus/common/model"
26
27
"github.com/prometheus/alertmanager/template"
28
)
@@ -31,7 +32,7 @@ var defaultData = template.Data{
31
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