Skip to main content
POST
Get the Health Check metrics of one or many devices
Key: Read Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Body

application/json
deviceIds
string[]

Device ids to read the Health Check of. Up to 100 per call. Send either deviceIds or filter, not both.

Required array length: 1 - 100 elements
Pattern: ^[a-f\d]{24}$
filter
object

Selects the devices as getDevices does (same keys and clauses), instead of deviceIds. Paginated by page and perPage; retired devices are left out unless the filter has an availableStatus clause.

matchAny
boolean

With filter: true keeps a device matching ANY clause (OR).

page
integer
default:1

With filter: the page of devices, from 1.

Required range: 1 <= x <= 9007199254740991
perPage
integer
default:100

With filter: devices per page (default and max 100).

Required range: 1 <= x <= 100
days
default:14

The window, in days, the RAM and CPU figures cover: 7, 14, 30 (default 14), as the range selector of the Health Check.

Response

default - application/json
window
object
required
items
object[]
required

The Health Check of each device found, in the order asked.

notFoundDeviceIds
string[]
required

The ids asked that name no device of your company.

pagination
object

The devices matched by filter; absent with deviceIds.