Integrations
Preview

Say what Wardn does with Sentry

Replaces the settings: whether releases are made in Sentry (`releaseTracking`), whether the commit of a release is sent so Sentry can resolve the issues its commit messages say they fix (`resolveFixed`), whether errors are watched for spikes (`spikeEnabled`), how many times the usual a spike is (`sp

PUT
/sentry/settings
cookiebetter-auth.session_token<token>

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

Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
releaseTracking*boolean

Make a release in Sentry when a Wardn release finishes in a mapped deployment.

resolveFixed*boolean

Send the release's commit so Sentry can resolve the issues its commit messages say they fix. Needs the repository connected in Sentry.

releaseNameFormat?"{deployment}@{sha7}"

How a release is named in Sentry. There is one way.

Value in"{deployment}@{sha7}"
environments?array<>

Wardn environments releases are made for; empty means every mapped one.

Itemsitems <= 20
spikeEnabled*boolean
spikeMultiple*integer

How many times the last day's usual error rate a spike is.

Range2 <= value <= 20
spikeMinutes*integer

For how many minutes the rate must hold.

Range1 <= value <= 60
openIncident*boolean

Open an incident for each new issue in a release when a spike follows it in production.

Response Body

The integration.

application/json
  1. response
standing*SentryStanding
Value in"not_connected""ok""stale"
connection?
syncedAt?string
Formatdate-time
syncError?string
lastEventAt?string

When the last webhook was believed.

Formatdate-time
tokenMask?string

The signing token as its prefix and last four characters, such as whtok_••••3b9e.

paused*boolean
refs*array<>
projects*array<>
settings*
projectsSeen*integer

How many projects Sentry showed at the last read.

projectsMapped*integer
projectsNotMapped*integer

Projects Sentry shows that are not mapped to a deployment.

Example Request
curl -X PUT 'https://wardn.example.com/api/v1/sentry/settings' \  -H 'Content-Type: application/json' \  -d '{  "releaseTracking": true,  "resolveFixed": true,  "spikeEnabled": true,  "spikeMultiple": 2,  "spikeMinutes": 1,  "openIncident": true}'
Example Response
{  "standing": "not_connected",  "connection": {    "name": "string",    "baseUrl": "string",    "organization": "string",    "webhookPath": "string",    "signingToken": "string",    "connectedAt": "2019-08-24T14:15:22Z"  },  "syncedAt": "2019-08-24T14:15:22Z",  "syncError": "string",  "lastEventAt": "2019-08-24T14:15:22Z",  "tokenMask": "string",  "paused": true,  "refs": [    {      "field": "string",      "ref": "string",      "found": true    }  ],  "projects": [    {      "slug": "string",      "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",      "environments": [        "string"      ]    }  ],  "settings": {    "releaseTracking": true,    "resolveFixed": true,    "releaseNameFormat": "{deployment}@{sha7}",    "environments": [      "string"    ],    "spikeEnabled": true,    "spikeMultiple": 2,    "spikeMinutes": 1,    "openIncident": true  },  "projectsSeen": 0,  "projectsMapped": 0,  "projectsNotMapped": 0}