Hello,
I currently have a NewRelic alert notification to update StatusPage for a major outage.
But I'm trying to send a customized payload to update the status instead to a "Minor outage". The default payload is always a "Major Outage" https://support.atlassian.com/statuspage/docs/set-up-new-relic-alerts-parsing/.
I want to know how I should setup my custom payload in the webhook to achieve this? What should be values in Basic Auth? Is that the username/password for StatusPage? How about the custom headers? Should the Base URL be the specific component url?
Thanks,
Priya
Hi @Priyadarshini R Kolwalkar -
Since adding a webhook is not part of setting up the New Relic integration we offer, you'll need to leverage the Statuspage API to get what you're trying to accomplish. Please take note that "Minor outage" isn't one of the component statuses.
You'll need to use the 'Update a Component' API for this. So the endpoint you would put in the Base Url would be something like this:
https://api.statuspage.io/v1/pages/{page_id}/components/{component_id}?api_key=XXXX. The Basic Auth part won't be needed.
From there, you'll need to use the request sample we provide and add that to the body of the webhook. If you don't have a way of adding a request to the body of the webhook, you won't be able to send this to Statuspage to update the component.
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.