Configure Webhook Reception in PagerDuty
NOTE: This documentation was written based on PagerDuty documentation at the time of release. Check PagerDuty for the most current documentation.
User Roles
You will need one of the user roles to add a webhook integration:
-
Manager
-
Admin or Global Admin
-
Account Owner
Add a Webhook Subscription
-
Follow instructions to create a generic events API integration.
-
On the Integrations page, click Events API V2.
-
Find the Integration Key in the Integrations tab by clicking the down arrow to the right of the integration.
Use this key in your webhook to send events to PagerDuty.
Webhook Body Template for PagerDuty
Copy and paste this content into the Body section of the Add New Recipient dialog box. Edit as needed.
TIP: For PagerDuty, add your integration key to the JSON template and use the integration URL with the POST method.
IMPORTANT: You must replace the routing_key property’s value with the customer-generated integration key. You can find this value in PagerDuty documentation.
{
"routing_key": "YOUR_ROUTING_KEY",
"event_action": "trigger",
"payload": {
"summary": "@{notificationName}",
"timestamp": "@{activationTime}",
"severity": "warning",
"source": "SysTrack Sensor Notification",
"custom_details": {
"Sensor(s)": "@{sensorNamesUnquoted}",
"Group": "@{groupName}",
"Activation": "@{activationThresholdText}",
"Description": "@{notificationDescription}"
}
},
"links": [
{
"href": "@{notificationActivationDetailsURL}",
"text": "Learn more in SysTrack"
}
]
}
On This Page