Health check
const url = 'https://example.com/api/v1/health?verbose=false';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/health?verbose=false'Returns the health status of the application and its components.
Status values:
healthy: All components functioning normallydegraded: Core functionality works but some components have issuesunhealthy: Core functionality is broken
Use ?verbose=true for detailed component information.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Include detailed component information
Responses
Section titled “Responses”Health check response
object
Overall health status
Current server time
Application version
Server uptime in seconds
object
object
Individual component health status
Database query response time in milliseconds
Current migration version
Error message if unhealthy
object
Individual component health status
Additional status information
Total number of PCD repos configured (verbose only)
Number of enabled repos (verbose only)
Number of repos with compiled cache (verbose only)
Number of disabled repos (verbose only)
object
Individual component health status
Additional status information
Last run time for each job (verbose only)
object
object
Individual component health status
Whether backups are enabled
Additional status information
Timestamp of last backup (verbose only)
Number of backup files (verbose only)
Human-readable total size of all backups (verbose only)
Configured retention period in days (verbose only)
object
Individual component health status
Additional status information
Human-readable total size of log files (verbose only)
Number of log files (verbose only)
Date of oldest log file (verbose only)
Date of newest log file (verbose only)
Example
{ "status": "healthy", "components": { "sqlite": { "status": "healthy" }, "repos": { "status": "healthy" }, "jobs": { "status": "healthy" }, "backups": { "status": "healthy" }, "logs": { "status": "healthy" } }}