projectAlerts

List project alerts. Requires project.logs.read.

Arguments

  • projectReferenceID!required

    Project UUID or slug.

  • status[AlertStatus!]

    Only alerts in one of these statuses. Omit for firing and resolved alerts. One of firing, resolved.

  • sortOrderAlertSortOrder

    Order by first seen time; ties break by id ascending. Defaults to desc, newest first. One of asc, desc.

  • limitInt

    Alerts per page, 1 to 100; default 20.

  • cursorString

    The previous page's pageInfo.endCursor.

Responses

query ProjectAlerts($projectReference: ID!) {  projectAlerts(projectReference: $projectReference) {    data {      id      ruleId      title      status      errorCode      runKind      runStatus      startedAt      resolvedAt    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }  }}
{  "data": {    "projectAlerts": {      "data": [        {          "id": "string",          "ruleId": "string",          "title": "string",          "status": "firing",          "errorCode": "string",          "runKind": "string",          "runStatus": "string",          "startedAt": "2026-01-01T00:00:00Z",          "resolvedAt": "2026-01-01T00:00:00Z"        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      }    }  }}

The ProjectAlertPage! in data.projectAlerts.