`amtool template render` improve default data (#3725)
Signed-off-by: Philipp Stehle <anderschwiedu@gmail.com>
This commit is contained in:
parent
efa801faf7
commit
81c3e3bae5
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue