docs(alerting): clarify usage of templates in webhook custom payloads (#112672)
* docs(alerting): clarify usage of templates in webhook custom payloads * Update docs/sources/alerting/configure-notifications/template-notifications/manage-notification-templates.md Co-authored-by: Johnny Kartheiser <140559259+JohnnyK-Grafana@users.noreply.github.com> --------- Co-authored-by: Johnny Kartheiser <140559259+JohnnyK-Grafana@users.noreply.github.com>
This commit is contained in:
co-authored by
Johnny Kartheiser
parent
56b088aa2e
commit
fb5c5411f8
@@ -8,6 +8,7 @@ title: 'Custom webhook example'
|
||||
---
|
||||
|
||||
```go
|
||||
{- /* Generates a pretty-printed JSON payload with alert group info and individual alerts metadata. */ -}}
|
||||
{{ define "webhook.custom.payload" -}}
|
||||
{{ coll.Dict
|
||||
"receiver" .Receiver
|
||||
|
||||
Reference in New Issue
Block a user