Service Availability Events

The SERVICES webhook event type provides real-time notifications related to the availability status of services integrated with the Sunlight Connect SDK. This event type includes two specific events:

  • SERVICE_UNAVAILABLE
  • SERVICE_OPERATIONAL

SERVICE_UNAVAILABLE

The SERVICE_UNAVAILABLE event is triggered when a service becomes temporarily unavailable. This event notifies you when a service is not accessible at the moment.

{
  "event": "SERVICE_UNAVAILABLE",
  "description": "service is temporary unavailable",
  "data": {
    "service_id": "6dae3736a9e8-527d-4e9f-8b5a-6dff6ff3",
    "service_name": "aws",
    "update_time": "2022-05-12 14:23:11.804474"
  }
}

SERVICE_OPERATIONAL

The SERVICE_OPERATIONAL event is triggered when a previously unavailable service returns to its operational state. This event signals the restoration of service availability.

{
  "event": "SERVICE_OPERATIONAL",
  "description": "service is operational",
  "data": {
    "service_id": "6dae3736a9e8-527d-4e9f-8b5a-6dff6ff3",
    "service_name": "aws",
    "update_time": "2022-05-12 15:23:18.504343"
  }
}