moira icon indicating copy to clipboard operation
moira copied to clipboard

Webhook payload clarification

Open AlexIvchenko opened this issue 5 years ago • 1 comments

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?

AlexIvchenko avatar May 31 '19 14:05 AlexIvchenko

TODO:

  • Add other valuable fields from NotificationEvent
  • Consider using "text/template", "github.com/masterminds/sprig" to pass k:v and/or custom headers

kamaev avatar Jun 04 '19 19:06 kamaev