Appearance
Health
Description
The health module can be used to quickly check whenever the server is running or not. Furthermore, it allows to check other hardware specific information such as cpu, memory, disk space and uptime.
API
Health Check
Calling this endpoint should return the status 200
and can be used to check the health of the server.
GET
/api/v1/health
Response
This endpoint simply returns Status 204
to indicate a successful operation and to save bandwidth.
Server Status
This endpoint offers the option to check for the server status and returns information regarding cpu, memory, disk space and uptime.
GET
/api/v1/health/status
Access
This endpoint requires read
permission for the resource health
.
Response
Name | Description |
---|---|
cpuobject | This object contains CPU related health information. |
cpu.cpuUsagePercentarray number | The current CPU usage for each core as percentage. |
cpu.cpuAverageUsagePercentnumber | The average CPU usage for all cores combined as percentage. |
memoryobject | Memory related process and system information. |
memory.freeMemoryBytesinteger | The number of free memory of the system in bytes. |
memory.totalMemoryBytesinteger | The number of total memory of the system in bytes. |
memory.freeMemoryPercentnumber | The number of free memory of the system as percentage. |
memory.processMemoryBytesinteger | The number memory used by the process in bytes |
diskobject | This object contains information regarding the system disk space. |
disk.freeDiskBytesinteger | The number of free disk space of the system in bytes. |
disk.totalDiskBytesinteger | The number of total disk space of the system in bytes. |
disk.freeDiskPercentinteger | The number of free disk space of the system as percentage. |
uptimeobject | System and Process uptime information. |
uptime.systemUptimeSecondsinteger | The uptime of the system in seconds. |
uptime.processUptimeSecondsinteger | The uptime of the process in seconds. |
databaseobject | Database related information. |
database.statusstring enum | The database connection status. The value `unused` is used, when no database has been configured and no data is persistently stored. Possible values: connected, disconnected, unused |
versionstring | The installed version of the coldwave backend environment. |
Server Status (Deprecated)
This endpoint offers the option to check for the server status and returns information regarding cpu, memory, disk space and uptime.
WARNING
This endpoint is deprecated. It will be changed to fit the camel-case key naming convention of any other endpoint with version five at the latest! Use the route /status
in order to switch to the new format already.
GET
/api/v1/health/monitor
Access
This endpoint requires read
permission for the resource health
.
Response
Name | Description |
---|---|
cpuobject | This object contains CPU related health information. |
cpu.cpu-usage-percentarray number | The current CPU usage for each core as percentage. |
cpu.average-cpu-usage-percentnumber | The average CPU usage for all cores combined as percentage. |
memoryobject | Memory related process and system information. |
memory.free-memory-bytesinteger | The number of free memory of the system in bytes. |
memory.total-memory-bytesinteger | The number of total memory of the system in bytes. |
memory.free-memory-percentnumber | The number of free memory of the system as percentage. |
memory.process-memory-bytesinteger | The number memory used by the process in bytes |
diskobject | This object contains information regarding the system disk space. |
disk.free-disk-bytesinteger | The number of free disk space of the system in bytes. |
disk.total-disk-bytesinteger | The number of total disk space of the system in bytes. |
disk.free-disk-percentinteger | The number of free disk space of the system as percentage. |
uptimeobject | System and Process uptime information. |
uptime.system-uptime-secondsinteger | The uptime of the system in seconds. |
uptime.process-uptime-secondsinteger | The uptime of the process in seconds. |
database-statusstring enum | The database connection status. The value `undefined` is used, when no database has been configured and no data is persistently stored. Possible values: connected, disconnected, undefined |