Aerovy Platform logo

Get a thing's latest event

GEThttps://spectra.api.aerovy.com/v2/things/{thingId}/latest-event

Returns the single latest event for a thing. Requires an API key with the read action scoped to the thing.

Loading code example
Loading code example

Authorizations

apiKeystringheaderrequired

API key passed in the header.

Path Parameters

thingIdstringrequired

The thing id.

Query Parameters

selectedFieldsarray<string>

Optional metric ids to restrict the result to.

Response

application/json

The latest event (null if none).

timenull | string<date-time>
timeInHoursnull | number | string<double>
Pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
groupBynull | string
dataPointsarray<object>
dataPoints.typestring
dataPoints.unitnull | string
dataPoints.valueany
dataPoints.aggregationnull | string