Use this StatusPage integration to notify StatusPage when there are service issues that impact your platform.
To implement the integration, you will:
- Create a pair of alerts:
- An alert configured with a condition to trigger a StatusPage update
- An alert configured with the opposite trigger condition, to update the StatusPage when the conditions return to normal
- Create a pair of custom endpoints to update a specific component, then attach each endpoint to the relevant alert:
- An endpoint to update the component with the triggered status
- An endpoint to update the component with the status Operational
Creating a custom endpoint to update StatusPage components
Look up your page_id
- Log in to your StatusPage account.
- Click your profile picture.
- Select API info from the menu.
- Find your
page_id
.
Look up your component_id
- Log in to your StatusPage account.
- In the left menu, click
Components
and select the component you want to update. - Scroll to the bottom to see your Component API ID.
Look up your StatusPage API key
- Log in to your StatusPage account.
- Click your profile picture.
- Select API info from the menu.
- Find your account
API key
.
Create the endpoint
The endpoint makes use of the StatusPage API, which can be found here.
- To add a new custom endpoint, click Add endpoint.
- Type: Select the option Custom.
- URL: Use the following StatusPage API URL and replace the placeholder values in the URL for
[page_id]
and[component_id]
with the values that you looked up in the previous steps: https://api.statuspage.io/v1/pages/[page_id]
/components/[component_id]
. - Method: Select the PUT method.
- Headers: Add
Authorization=OAuth {[API key]}
and replace the[API key]
placeholder with the StatusPage API key you determined in step 3. - Body: Add your body message. See the next step for details.
Add your message
Use the following code and replace the placeholder with the relevant status parameter.
Message body structure
{
"component": {
"status": "{placeholder value}" # replace with the relevant option from the list of status parameters
}
}
Status parameter options
operational
degraded_performance
partial_outage
major_outage
under_maintenance
Payload example
{
"component": {
"status": "partial_outage"
}
}
Test the endpoint (optional)
Click Run the test to verify your endpoint. Logz.io shows if the message was successfully sent.
Check that the message arrived at the target endpoint.
Save the endpoint
Save your endpoint.