Read one property series' change history
const url = 'https://example.com/api/v1/components/example/properties/example/samples';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/components/example/properties/example/samplesThe change history behind the effective value for one property series, newest first, windowed (hours) and capped (limit, newest kept). With a resolution (seconds) it answers instead with every regular bucket of the window, oldest first, each with the change count, last (the value its own changes end on, null when empty) and held (the value in force at its end), and covered_from, the earliest instant retention leaves data for. Both forms carry carried_in, the value in force when the window opens (the newest measured row of the instance before it, within retention), so a step chart starts on it instead of blank. A bucket aggregates one instance’s measured changes (observed and calculated, never declared or intended): instance names it, and unset it is the one instance with measured changes in the window, or a 422 listing them when there are several. Gated by component:read; an out-of-scope owner is a non-disclosing 404.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The owner’s name or uuid
The owner’s name or uuid
The property_type name of the series
The property_type name of the series
Query Parameters
Section titled “ Query Parameters ”The window in hours, counted back from now; 24 when unset
The window in hours, counted back from now; 24 when unset
The row cap, newest kept; 500 when unset. Ignored when a resolution is set
The row cap, newest kept; 500 when unset. Ignored when a resolution is set
The bucket width in seconds, at most 30 days. Set, the read answers with every regular bucket of the window (buckets) instead of raw rows; unset, the raw samples. A window of more than 5000 buckets is refused
The bucket width in seconds, at most 30 days. Set, the read answers with every regular bucket of the window (buckets) instead of raw rows; unset, the raw samples. A window of more than 5000 buckets is refused
The instance a bucketed read aggregates. Unset, the one instance with measured samples in the window; when more than one has them the read is refused with a 422 listing them. On a raw read it names only the instance whose carried_in value is returned, the one with a measured row in the window else the one holding a value from before it
The instance a bucketed read aggregates. Unset, the one instance with measured samples in the window; when more than one has them the read is refused with a 422 listing them. On a raw read it names only the instance whose carried_in value is returned, the one with a measured row in the window else the one holding a value from before it
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
Every regular bucket of the window, oldest first
object
Changes in the bucket
The value in force at the bucket’s end: last, else the value held at the end of the bucket before it, else carried_in; null before any value is known (#1488)
The value the bucket’s own changes end on, from the newest change in it; null for a bucket with no change
The bucket’s start
The value in force when the window opens: the newest measured row (observed or calculated) of the instance from before it, no older than the type’s retention; absent when none. A step chart draws it from the window’s left edge to the first change
The earliest instant the read could have data for: the start of the window or the series’ effective retention, whichever is later
The one instance the buckets aggregate, measured changes only (observed and calculated); present only on a bucketed read
The owner’s name
The series’ property_type name
The bucket width applied, the one asked for; present only on a bucketed read
Newest first: the change history behind the effective value; empty when a resolution was asked for
object
The series discriminator, when set
Observed, declared, or calculated
When the value was observed
Example
{ "$schema": "/api/v1/schemas/PropertySeriesOutputBody.json"}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{ "$schema": "/api/v1/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "about:blank"}