Skip to Content
OpenPerf

Alert rules

List alert rules

GET
/api/v1/alert-rules

Returns alert rules in the active organization, optionally filtered by project.

Authorization

cookie
cookiebetter-auth.session_token<token>

Dashboard session cookie

Query Parameters

projectId?string
Length1 <= length <= 64

Response Body

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://api.example.com/api/v1/alert-rules'
Example Response
[  {    "id": "string",    "name": "string",    "projectId": "string",    "projectName": "string",    "kind": "new_issue",    "environments": [      "string"    ],    "comparison": "above",    "threshold": 0,    "windowMinutes": 0,    "cooldownMinutes": 0,    "notifyRecovery": true,    "enabled": true,    "mutedUntil": "2019-08-24T14:15:22Z",    "phase": "ok",    "lastTriggeredAt": "2019-08-24T14:15:22Z",    "subscribed": true,    "subscriberCount": 0,    "integrationIds": [      "string"    ],    "createdBy": {      "id": "string",      "name": "string"    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }]