Get fleet health summary
const url = 'http://localhost:3000/api/v1/fleet/health';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/fleet/health \ --header 'X-API-Key: <X-API-Key>'Returns aggregated health metrics across all devices in the organization.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”UUID of the organization (tenant) the request acts in. It selects the tenant and grants nothing: the server checks membership or an open tenant switch. Not needed for global operations. A malformed value returns 400. API keys are fixed to their own organization; another organization returns 403. The x-organization-source header grants nothing.
Responses
Section titled “Responses”Fleet health summary retrieved successfully
object
Total devices in organization
Devices currently online
Devices currently offline
Devices in error state
Average CPU usage across fleet (%)
object
Average memory usage across fleet (%)
object
Average disk usage across fleet (%)
object
Devices with CPU usage above 90%
object
object
object
object
Devices with disk usage above 85%
object
object
object
object
Recent error log entries across fleet
object
Examplegenerated
{ "totalDevices": 1, "onlineDevices": 1, "offlineDevices": 1, "errorDevices": 1, "avgCpuPercent": {}, "avgMemPercent": {}, "avgDiskPercent": {}, "devicesWithHighCpu": [ { "deviceId": "example", "deviceName": "example", "cpuUsagePercent": {}, "memoryUsagePercent": {}, "diskUsagePercent": {} } ], "devicesLowDisk": [ { "deviceId": "example", "deviceName": "example", "cpuUsagePercent": {}, "memoryUsagePercent": {}, "diskUsagePercent": {} } ], "recentErrors": [ { "deviceId": "example", "deviceName": "example", "message": "example", "timestamp": "example" } ]}Forbidden — caller lacks required permission