PagerDuty Integration
Create PagerDuty alerts on payment failures for incident management.
Connect Dunmore to PagerDuty to create alerts when payments fail and auto-resolve when they settle.
Setup
- In PagerDuty, create a new Events API v2 integration on your service
- Copy the Routing Key (Integration Key)
- Add a PagerDuty connector in the Dunmore console
Alert Behavior
| Dunmore Event | PagerDuty Action | Severity |
|---|---|---|
payment.failed | Trigger alert | Error |
payment.settled | Resolve alert | Info |
Alerts include payment details (amount, endpoint, error code) in custom_details. The dedup_key is the Dunmore event ID.
Configuration
{
"type": "pagerduty",
"config": {
"routingKey": "your-pagerduty-routing-key"
},
"eventTypes": ["payment.failed", "payment.settled"]
}
API Example
curl -X POST https://api.dunmore.xyz/api/projects/{projectId}/connectors \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"type": "pagerduty",
"config": {
"routingKey": "YOUR_PAGERDUTY_ROUTING_KEY"
},
"eventTypes": ["payment.failed", "payment.settled"]
}'