Skip to main content
GET
List the Metric Reports a Device has sent

Authorizations

Authorization
string
header
required

A user API token, or a product API key created in a product's settings.

A product API key only works on the routes for its own product, under /api/orgs/{org_name}/products/{product_name}, and on /api/devices/{identifier} for that product's devices. What it may do there is decided by the role it holds, the same way a member's role decides what they may do.

Path Parameters

identifier
string
required

Device Identifier

Query Parameters

key
string

Only these metrics. Comma separated for more than one. Matched as given — a name the device has never reported matches nothing, and a report that carried none of them is left out

since
string<date-time>

Only reports taken at or after this ISO 8601 timestamp. Inclusive, so a client following a device forward from its newest report gets that report again

before
string<date-time>

Only reports taken strictly before this ISO 8601 timestamp. To page back through history, pass the timestamp of the oldest report you received

limit
integer
default:100

How many reports to return, from 1 to 1000. Counts reports, not readings

order
enum<string>
default:desc

desc for newest first, asc for oldest first

Available options:
desc,
asc

Response

Device Metric Report List Response

Device metric report list response

data
DeviceMetricReport · object[]

The matching reports, newest first unless order=asc was given