Get a thing's latest event
GET
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 | stringdataPointsarray<object>dataPoints.typestringdataPoints.unitnull | stringdataPoints.valueanydataPoints.aggregationnull | string