`amtool template render` improve default data (#3725)

Signed-off-by: Philipp Stehle <anderschwiedu@gmail.com>
This commit is contained in:
Philipp Stehle 2024-02-28 12:10:25 +01:00 committed by GitHub
parent efa801faf7
commit 81c3e3bae5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@ import (
"time"
"github.com/alecthomas/kingpin/v2"
"github.com/prometheus/common/model"
"github.com/prometheus/alertmanager/template"
)
@ -31,7 +32,7 @@ var defaultData = template.Data{
Status: "alertstatus",
Alerts: template.Alerts{
template.Alert{
Status: "alertstatus",
Status: string(model.AlertFiring),
Labels: template.KV{
"label1": "value1",
"label2": "value2",
@ -51,7 +52,7 @@ var defaultData = template.Data{
Fingerprint: "fingerprint1",
},
template.Alert{
Status: "alertstatus",
Status: string(model.AlertResolved),
Labels: template.KV{
"foo": "bar",
"baz": "qux",