Using status page, I am subscribed to multiple webhooks from a few different third party services.
How different is the JSON response between these webhooks? Is it all the same?
I've been referring to this link but see two types of JSON data
https://support.atlassian.com/statuspage/docs/enable-webhook-notifications/
Just wondering which JSON would be sent to the webhook endpoint
Hi Benjamin, welcome to the Community!
The two different JSON values on the page show the payloads for incidents (a particular time something happened) and components (each item that's listed on your status page, such as "API" or "Authentication"). A little more explanation around components is available here.
Typically when an incident is created, one or more components will be listed as affected. For example, on this recent Trello incident, both the API and Trello.com components were affected:
In the webhook payloads, there will be component and incident objects you can filter for. Depending on how you're consuming the webhooks, you might not need both the incident and components. For example, if you're putting the status of a service on a big traffic light in your office, you'd only really need the component payload, and just update your traffic light based on the status_indicator value.
I hope that explains the difference a bit, but I'm happy to provide more guidance if you've got a particular use-case you need help with.
Cheers,
Daniel
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.