Ingest thing data
Writes one or more timestamped data frames for a thing. Each frame carries a Unix-epoch-millisecond
timestamp and a generic map of metric name to value; names are matched (case-insensitively)
against the thing's ThingTypeDefinition and mapped to their immutable metric ids before being
written to timeseries. Values may be numbers, booleans, or strings and are coerced to each
metric's declared data type. Unknown metric names are rejected with 400. Requires an API key
with the write action scoped to the thing.
Authorizations
API key passed in the header.
Path Parameters
The thing to ingest data for.
Body
The data frames to ingest.
framesarray<object>requiredThe data frames to ingest. At least one is required.
>= 1 elementsframes.timestampinteger | string<int64>requiredThe reading time as Unix epoch milliseconds (UTC).
^-?(?:0|[1-9]\d*)$frames.metricsobjectrequiredMetric values keyed by metric name. Values are scalars — number, boolean, or string — and are coerced to each metric's declared data type. At least one metric is required.
Response
Data accepted and written; returns an ingest summary.
thingIdstringThe thing the data was written for.
framesIngestedinteger | string<int32>The number of data frames written.
^-?(?:0|[1-9]\d*)$metricsarray<string>The distinct metric names that were ingested across the frames.