GamebeastDocs
Dashboard
Project APIAlerts

Get an alert's history

GET
/application/{applicationId}/analytics/v1/alerts/{alertId}/history

State changes newest first (kept 90 days), with the incidents they opened or closed.

Authorization

personalAccessTokenAuth
AuthorizationBearer <token>

Personal access token (prefixed gb_pat_). Acts on behalf of its owner and can never exceed the owner's own permissions. Send it as Authorization: Bearer <token>.

In: header

Path Parameters

applicationId*number

Gamebeast project ID

alertId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Query Parameters

limit?integer
Range1 <= value <= 100
Default50
cursor?string
Lengthlength <= 200

Header Parameters

environment_id*number

Gamebeast environment ID

Response Body

application/json

curl -X GET "https://example.com/application/0/analytics/v1/alerts/497f6eca-6276-4993-bfeb-53cbbbba6f08/history" \  -H "environment_id: 0"
{  "transitions": [    {      "id": "string",      "from": "ok",      "to": "ok",      "value": 0,      "reason": "string",      "incidentId": "string",      "at": "2019-08-24T14:15:22Z"    }  ],  "incidents": [    {      "incidentId": "string",      "startedAt": "2019-08-24T14:15:22Z",      "endedAt": "2019-08-24T14:15:22Z",      "endReason": "resolved",      "valueAtStart": 0,      "valueAtEnd": 0,      "annotationId": "88801ce0-d7fe-4339-afa4-cdb9248204d4"    }  ],  "nextCursor": "string"}