[release-12.2.2] docs(alerting): clarify usage of templates in webhook custom payloads (#112755)
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
---------
(cherry picked from commit fb5c5411f8)
Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
Co-authored-by: Johnny Kartheiser <140559259+JohnnyK-Grafana@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
569738c316
commit
470edab706
@@ -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