moira
moira copied to clipboard
Webhook payload clarification
Hi! I am currently investigating if I can use moira for my purposes. I need to integrate moira with my monitoring system . I want to have a notifier as a separate service.
The way I am considering to do that is the webhooks. However, payload is trimmed and does not contain all required fields to generate my own notifications. Why doesn’t moira forward entire model (which is defined in datatypes.go) to the webhook endpoint? I have one more question. Could we add some custom key-values to payload using web ui?
TODO:
- Add other valuable fields from NotificationEvent
- Consider using "text/template", "github.com/masterminds/sprig" to pass k:v and/or custom headers