Skip to content

Documentation on Webhook Request Body Template Language #262

@martialblog

Description

@martialblog

Would be nice to have some documentation on the Webhook Request Body Template Language. What language it is, how to use it, some example and potential pitfalls.

@oxzi was kind enough to provide me with this example, which help understanding how I use the Request Body Template field:

{"action": "update-incident", "id": {{.Incident.Id}}, "severity": "{{.Incident.Severity}}", "msg": {{json .Event.Message}}, "tags": {{json .Object.Tags}}}

Metadata

Metadata

Assignees

Labels

docDocumentation relatedenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions