VoiceGateway

Read saved alert rule configuration

GET
/api/v1/org/{orgId}/project/{projectId}/alert-setup

Authorization

cookievg_session<token>

The console's session cookie, set when you sign in. Every operation accepts it, at the role the operation names.

Path Parameters

orgId*string

Authorised orgId; the server must verify organisation/project ownership before any read.

Length1 <= length
projectId*string

Authorised projectId; the server must verify organisation/project ownership before any read.

Length1 <= length

Response Body

Authorised read result. Null means unreported, never zero. Source-specific coverage limits remain visible.

application/json
  1. response
items*array<>
channels*array<>

The project's configured channels, each with its latest delivery. A kind not listed is not configured.

emailAvailable*boolean

Whether this server sends email (VOICEGATEWAY_SMTP_URL is set). Without it the email channel cannot be configured.

Example Request
curl -X GET 'https://example.com/api/v1/org/string/project/string/alert-setup'
Example Response
{  "items": [    {      "ruleId": "slow-answer",      "on": true,      "to": [        "slack"      ]    }  ],  "channels": [    {      "kind": "email",      "target": "string",      "recipients": [        "string"      ],      "broken": true,      "updatedAt": "2019-08-24T14:15:22Z",      "lastDelivery": {        "id": "string",        "channel": "email",        "change": "firing",        "state": "pending",        "attempts": 0,        "nextAttemptAt": "2019-08-24T14:15:22Z",        "status": "string",        "message": "string",        "deliveredAt": "2019-08-24T14:15:22Z",        "createdAt": "2019-08-24T14:15:22Z"      }    }  ],  "emailAvailable": true}

Was this page helpful?