Integrations
Preview

Say which Opsgenie alerts count

Replaces the list of tags: an alert that carries a tag puts an incident in that environment when it is at least as serious as `minPriority` (1 is P1). Every environment must exist and a tag is mapped once. Needs `integration:manage`.

PUT
/opsgenie/mappings
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
mappings*array<>
Itemsitems <= 100

Response Body

The integration.

application/json
  1. response
standing*OpsgenieStanding
Value in"not_connected""ok""stale"
connection?
syncedAt?string
Formatdate-time
syncError?string
lastAlertAt?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<>
mappings*array<>
schedules*array<>
Example Request
curl -X PUT 'https://wardn.example.com/api/v1/opsgenie/mappings' \  -H 'Content-Type: application/json' \  -d '{  "mappings": [    {      "tag": "string",      "environment": "string",      "minPriority": 1    }  ]}'
Example Response
{  "standing": "not_connected",  "connection": {    "name": "string",    "region": "us",    "baseUrl": "string",    "webhookPath": "string",    "openAlerts": true,    "signingToken": "string",    "connectedAt": "2019-08-24T14:15:22Z"  },  "syncedAt": "2019-08-24T14:15:22Z",  "syncError": "string",  "lastAlertAt": "2019-08-24T14:15:22Z",  "tokenMask": "string",  "paused": true,  "refs": [    {      "field": "string",      "ref": "string",      "found": true    }  ],  "mappings": [    {      "tag": "string",      "environment": "string",      "minPriority": 1    }  ],  "schedules": [    {      "scheduleId": "string",      "scheduleName": "string",      "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",      "known": true,      "onCall": [        "string"      ],      "lastError": "string",      "checkedAt": "2019-08-24T14:15:22Z"    }  ]}