File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,10 +91,11 @@ run-test: ## Run a local instance with example webhook and email settings.
9191 --expected-every=5s \
9292 --alerting-delay=3s \
9393 --name=prometheus \
94+ --webhook.ops.log-response=full \
9495 --webhook.ops.url=https://slack.com/api/chat.postMessage \
9596 --webhook.ops.headers=" Authorization=Bearer $$ {SLACK_TOKEN}" \
9697 --webhook.ops.template=builtin:slack-chat-post-message \
97- --webhook.ops.subject -template=' {{ if .Resolved }}[RESOLVED]{{ else }}[OVERDUE]{{ end }} Check-in {{ .CheckInName }}' \
98+ --webhook.ops.title -template=' {{ if .Resolved }}[RESOLVED]{{ else }}[OVERDUE]{{ end }} Check-in {{ .CheckInName }}' \
9899 --webhook.ops.custom-data=channel=" $$ {SLACK_CHANNEL:-alertmanager}" \
99100 --webhook.ops.send-resolved \
100101 --email.ops.smtp-host=smtp.gmail.com \
@@ -104,7 +105,7 @@ run-test: ## Run a local instance with example webhook and email settings.
104105 --email.ops.from=" $$ {EMAIL_FROM}" \
105106 --email.ops.to=" $$ {EMAIL_TO}" \
106107 --email.ops.template=builtin:email-html \
107- --email.ops.subject -template=' {{ if .Resolved }}[RESOLVED]{{ else }}[OVERDUE]{{ end }} Check-in {{ .CheckInName }}' \
108+ --email.ops.title -template=' {{ if .Resolved }}[RESOLVED]{{ else }}[OVERDUE]{{ end }} Check-in {{ .CheckInName }}' \
108109 --email.ops.send-resolved
109110
110111# #@ Endpoint smoke tests
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ require (
66 github.com/containeroo/httpgrace v0.1.2
77 github.com/containeroo/httpprefix v0.0.2
88 github.com/containeroo/httputils v0.0.1
9- github.com/containeroo/notifykit v0.0.8
9+ github.com/containeroo/notifykit v0.0.9
1010 github.com/containeroo/tinyflags v0.0.79
1111 github.com/containeroo/uuidv7 v0.0.2
1212 github.com/prometheus/client_golang v1.23.2
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ github.com/containeroo/httpprefix v0.0.2 h1:OvnhriCPVEoF1+12TXrou89smFcWqEsKTuZM
88github.com/containeroo/httpprefix v0.0.2 /go.mod h1:RUVtNKpy2OZ24ijpBsR3XijBASISwBm22da9j41Y3m8 =
99github.com/containeroo/httputils v0.0.1 h1:W9SbW6nbmnGgaEOXRH5nY9ZwLarBo3+FLUCx6EtS2mc =
1010github.com/containeroo/httputils v0.0.1 /go.mod h1:TrmDptapH6SBe6CeHFWY2kxy63O/9ZWBWrLKpc2SFjI =
11- github.com/containeroo/notifykit v0.0.8 h1:VmSuAJtStW04+PwDwH/e/I1IxMiaYua2JW6sz/oaXBs =
12- github.com/containeroo/notifykit v0.0.8 /go.mod h1:jNdY0ufZf+DhNK3qA/ZSJfd+/dfrSpD/spbUzYlANPk =
11+ github.com/containeroo/notifykit v0.0.9 h1:d5xbFF0s4XWzEZTN9WkiuFqr2wUW7anj9LE9be2SsqI =
12+ github.com/containeroo/notifykit v0.0.9 /go.mod h1:jNdY0ufZf+DhNK3qA/ZSJfd+/dfrSpD/spbUzYlANPk =
1313github.com/containeroo/tinyflags v0.0.79 h1:2cNIoTlwgZFYcy6el2ZEBgWiiLAWHlLRkduT+8I2+Zo =
1414github.com/containeroo/tinyflags v0.0.79 /go.mod h1:5CGkQy0A+90ubNaEDJanfXOlE4+aYHp4OBwCpXM1yDM =
1515github.com/containeroo/tmplfuncs v0.0.2 h1:Gzls/3c+Bcyc76PuPOKOVgG9boKM9/5todkIqlO597Q =
You can’t perform that action at this time.
0 commit comments