GET
/
site
/
{site}
curl --request GET \
  --url https://api.altostrat.io/faults/site/{site} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "message": "Site Offline: location1",
      "resolved_at": "2023-07-01 08:03:22",
      "created_at": "2023-07-01 07:05:22",
      "duration": "58 minutes",
      "severity": "critical",
      "type": "site",
      "cause": "Disconnected",
      "site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "resource_identifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "current_page": 1,
  "per_page": 50,
  "total": 123,
  "hash": "c541d19cf34bbf..."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

site
string
required

Site ID (UUID) for which to list all faults

Response

200
application/json

List of all faults for that site, possibly paginated or not

The response is of type object.