Perform health checks om the services enterprise is dependant on.
Check if course discovery service is up and running and accessible via API.
(DiscoveryNotAvailable) – raised if LMS service is not accessible for some reason.
A tuple containing service name and a message.
Check if E-Commerce service is up and running and accessible via API.
(EcommerceNotAvailable) – raised if LMS service is not accessible for some reason.
A tuple containing service name and a message.
Check if enterprise catalog service is up and running and accessible via API.
(EnterpriseCatalogNotAvailable) – raised if LMS service is not accessible for some reason.
A tuple containing service name and a message.
Check if LMS service is up and running and accessible via API.
(LMSNotAvailable) – raised if LMS service is not accessible for some reason.
A tuple containing service name and a message.
Exceptions for use by enterprise heartbeat module.
Bases: enterprise.heartbeat.exceptions.ServiceNotAvailable
Raised when Course Discovery service is not available.
Bases: enterprise.heartbeat.exceptions.ServiceNotAvailable
Raised when E-Commerce service is not available.
Bases: enterprise.heartbeat.exceptions.ServiceNotAvailable
Raised when Enterprise Catalog service is not available.
Bases: enterprise.heartbeat.exceptions.ServiceNotAvailable
Raised when Learning Management System (LMS) service is not available.
Throttles for heartbeat API endpoints.
Run health checks on all the services enterprise service is dependant on.
Bases: object
Status constants for service health check.
Run health checks on all the services and return the status of each service.
Views for enterprise heartbeat check.
Simple view that an external service can use to check if the app is up.
A json doc of service id: status or message. If the status for any service is anything other than True,it returns HTTP code 503 (Service Unavailable); otherwise, it returns 200.
(JsonResponse)
Enterprise heartbeat related code.