Icinga / icinga-notifications

Icinga Notifications: new and improved notifications and incident management for Icinga (work in progress, not ready for production yet)
GNU General Public License v2.0
11 stars 0 forks source link

Documentation on Webhook Request Body Template Language #262

Open martialblog opened 4 months ago

martialblog commented 4 months ago

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}}}