Returns
Promise<{ status: string; api_version: string; version: string }>
: A Promise that resolves to the health status response from the CyborgDB service containing the service status, API version, and application version.
Exceptions
Error
Error
- Throws if the health check request fails due to network connectivity issues.
- Throws if the server is unreachable or times out.
- Throws if authentication fails (invalid API key).
Service Errors
Service Errors
- Throws if the CyborgDB service is unhealthy or experiencing issues.
- Throws if there are internal server errors preventing health reporting.
Example Usage
Response Fields
Field | Type | Description |
---|---|---|
status | string | Current health status of the service (typically “healthy”) |
api_version | string | Version of the API interface (e.g., “v1”) |
version | string | Version of the CyborgDB application/service |