GET /organizations/{name}/teams/{team}/alerts/{id}

This operation retrieves an alert for a CAVE team. See this page for a primer on alert configuration.

The operation can only be invoked by a team administrator or member.

The response contains the created alert, in JSON format.

Resource URL

https://api.cavellc.io/organizations/{name}/teams/{team}/alerts/{id}

Resource Information

The request must be authenticated with a valid user token, as obtained from a login operation. See POST /users/login for details. The token can be passed as the username (with an empty password) following the Basic Authentication scheme of the HTTP protocol. Alternatively, the same token can be accepted as a Bearer Token, similar to the OAuth2 specification.

Example Request

curl -X GET \
     -H "Accept: application/json" \
     -u 801f3fcc-0426-4ffd-9c33-8a0e1bae2411: \
     https://api.cavellc.io/organizations/gilt/teams/twain/alerts/81

Example Response

HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 312
Location: https://api.cavellc.io/organizations/gilt/teams/twain/alerts/81
{
  "id": "81",
  "description": "svc-important: 5m p99 of responseTime above SLA of 1500ms for 15 minutes",
  "enabled": true,
  "period": "5m",
  "condition": "responseTime [service: svc-important, env: production].p99.5m > 1500 at least 3 times",
  "routing": {
    "pagerduty_service_api_key": "AW823HSJISNSNSJISI1UI00UU0"
  }
}

See Also

Back to Alerts

Back to API Main Page