# Health

List of Device Health API.

## GET /health/device-top-cpu-util

> Get the list of services consuming the most CPU on a specific device.

```json
{"openapi":"3.1.1","info":{"title":"ONES Apps API","version":"4.2.0"},"tags":[{"name":"Health","description":"List of Device Health API."}],"servers":[{"url":"https://localhost:3000/api"},{"url":"http://localhost:3000/api"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"authorization","in":"header","description":"Use User's Api for authorization"}}},"paths":{"/health/device-top-cpu-util":{"get":{"tags":["Health"],"description":"Get the list of services consuming the most CPU on a specific device.","parameters":[{"schema":{"type":"string"},"name":"filter","in":"query","description":"&#34;68:21:5F:A6:61:72&#34;  <br>  <br>  Note: Device MAC address as string."}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}}}}}}
```

## GET /health/devices-health

> Get list of devices with their health and status information.

```json
{"openapi":"3.1.1","info":{"title":"ONES Apps API","version":"4.2.0"},"tags":[{"name":"Health","description":"List of Device Health API."}],"servers":[{"url":"https://localhost:3000/api"},{"url":"http://localhost:3000/api"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"authorization","in":"header","description":"Use User's Api for authorization"}}},"paths":{"/health/devices-health":{"get":{"tags":["Health"],"description":"Get list of devices with their health and status information.","responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}}}}}}
```

## GET /health/devices-health-detail

> Get list of devices with their health and status information in detail.

```json
{"openapi":"3.1.1","info":{"title":"ONES Apps API","version":"4.2.0"},"tags":[{"name":"Health","description":"List of Device Health API."}],"servers":[{"url":"https://localhost:3000/api"},{"url":"http://localhost:3000/api"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"authorization","in":"header","description":"Use User's Api for authorization"}},"schemas":{"DeviceInfo_filter":{"type":"object","properties":{"deviceAddress":{"type":"string"},"windowSize":{"type":"string"}}}}},"paths":{"/health/devices-health-detail":{"get":{"tags":["Health"],"description":"Get list of devices with their health and status information in detail.","parameters":[{"schema":{"$ref":"#/components/schemas/DeviceInfo_filter"},"name":"filter","in":"query","description":"{ <br>  &nbsp;&#34;windowSize&#34; : &#34;1 hour&#34;, <br>  &nbsp;&#34;deviceAddress&#34; : &#34;68:21:5F:A6:61:72&#34;, <br>  &nbsp;&#34;fan&#34; : null, <br>  &nbsp;&#34;psu&#34; : null, <br>  &nbsp;&#34;activeTab&#34; : &#34;system&#34;<br>  }  <br>  <br>  Note: For &#34;deviceAddress&#34; field accepts Mac address. <br>"}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}}}}}}
```

## GET /health/fabric-health

> Get Fabric wide health status in the network

```json
{"openapi":"3.1.1","info":{"title":"ONES Apps API","version":"4.2.0"},"tags":[{"name":"Health","description":"List of Device Health API."}],"servers":[{"url":"https://localhost:3000/api"},{"url":"http://localhost:3000/api"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"authorization","in":"header","description":"Use User's Api for authorization"}}},"paths":{"/health/fabric-health":{"get":{"tags":["Health"],"description":"Get Fabric wide health status in the network","responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}}}}}}
```
