Skip to content

Commit 729c072

Browse files
committed
amtool template render improve default data
Signed-off-by: Philipp Stehle <[email protected]>
1 parent 80b3cb0 commit 729c072

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cli/template_render.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"time"
2323

2424
"github.com/alecthomas/kingpin/v2"
25+
"github.com/prometheus/common/model"
2526

2627
"github.com/prometheus/alertmanager/template"
2728
)
@@ -31,7 +32,7 @@ var defaultData = template.Data{
3132
Status: "alertstatus",
3233
Alerts: template.Alerts{
3334
template.Alert{
34-
Status: "alertstatus",
35+
Status: string(model.AlertFiring),
3536
Labels: template.KV{
3637
"label1": "value1",
3738
"label2": "value2",
@@ -51,7 +52,7 @@ var defaultData = template.Data{
5152
Fingerprint: "fingerprint1",
5253
},
5354
template.Alert{
54-
Status: "alertstatus",
55+
Status: string(model.AlertResolved),
5556
Labels: template.KV{
5657
"foo": "bar",
5758
"baz": "qux",

0 commit comments

Comments
 (0)