Integrations
Preview

Get the PagerDuty integration

Whether PagerDuty is connected and believed, when its incidents were last read and why not if that failed, the services mapped to deployments, and the schedules mapped to on-call groups with who each named and until when. `standing` is `ok` while the last read worked and is recent, and `stale` after

GET
/pagerduty
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

Response Body

The integration.

application/json
  1. response
standing*PagerDutyStanding
Value in"not_connected""ok""stale"
connection?
syncedAt?string
Formatdate-time
syncError?string
services*array<>
schedules*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/pagerduty'
Example Response
{  "standing": "not_connected",  "connection": {    "baseUrl": "string",    "webhookPath": "string",    "webhookSecret": "string",    "connectedAt": "2019-08-24T14:15:22Z"  },  "syncedAt": "2019-08-24T14:15:22Z",  "syncError": "string",  "services": [    {      "serviceId": "string",      "serviceName": "string",      "deploymentIds": [        "c1396f06-c5b2-4d97-b12c-2e5b103262d6"      ]    }  ],  "schedules": [    {      "scheduleId": "string",      "scheduleName": "string",      "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",      "known": true,      "onCall": [        "string"      ],      "emails": [        "string"      ],      "checkedAt": "2019-08-24T14:15:22Z",      "until": "2019-08-24T14:15:22Z",      "lastError": "string"    }  ]}