Read the history of one or more view bindings
const url = 'https://example.com/api/v1/views:run';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"bindings":[{"filter":{"product":"example","system":"example","system_type":"example"},"from":"2026-04-15T12:00:00Z","keys":["example"],"kind":"component","limit":1,"page":"example","primitive":"metric","refs":["example"],"severity":"emergency","source":"example","step_seconds":1,"to":"2026-04-15T12:00:00Z","window_seconds":1}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/views:run \ --header 'Content-Type: application/json' \ --data '{ "bindings": [ { "filter": { "product": "example", "system": "example", "system_type": "example" }, "from": "2026-04-15T12:00:00Z", "keys": [ "example" ], "kind": "component", "limit": 1, "page": "example", "primitive": "metric", "refs": [ "example" ], "severity": "emergency", "source": "example", "step_seconds": 1, "to": "2026-04-15T12:00:00Z", "window_seconds": 1 } ] }'Reads each binding’s history from one snapshot and answers the tail cursor it was taken at (ADR-1830). A binding names a primitive (metric, property, event or log), an entity selector (literal refs, or a kind and a filter), the keys, and a range (from and to, or window_seconds back from now). A metric or property binding answers one series per resolved entity, key and instance: its raw points, or with step_seconds every bucket of an epoch-aligned grid (metric buckets carry count, min, max, avg and last; property buckets count, last and held), the older hours from the hourly trends when an hour-multiple step reaches past the raw retention. An event or log binding answers a page of rows, newest first, and a next_page. /views:watch from the cursor carries exactly the rows the history does not. Gated by view:read; each binding also needs
Request Bodyrequired
Section titled “ Request Bodyrequired ”object
A URL to the JSON Schema for this object.
The bindings read, all from one snapshot
object
Narrows a kind selector; refused beside refs
object
Components of this product (name or uuid). Component bindings only
Components that are members of this system (name or uuid). Component bindings only
Systems of this system type (name or uuid). System bindings only
An absolute range’s start. Give from (and optionally to), or window_seconds
The metric, property or event type names read. Required for metric and property; unset on an event binding reads every type; refused on a log binding
The entity kind the selector names. The binding needs
An event or log page’s size; 100 when unset
An event or log read’s next_page, to read further back
The primitive read: metric and property answer one series per entity, key and instance; event and log answer rows, newest first, a page at a time
Literal entities, by name, uuid or dotted address. One outside the caller’s scope is the same 404 as one that does not exist. Unset, the binding selects every visible entity of the kind that filter keeps
Log bindings: only lines at this severity or more severe
Log bindings: only lines that arrived on this channel
Buckets a metric or property read on an epoch-aligned grid of this width (at most 5000 buckets). An hour-multiple step reaching past the raw retention answers the older hours from the hourly trends. Unset, the raw points
An absolute range’s end, exclusive; unset is now. Needs from
A relative range: this many seconds back from now
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
The tail cursor every result was read at
The snapshot’s clock, the end of every relative range
One result per binding, in order
object
The earliest instant the read could hold data for: the raw retention’s floor, or the trend floor when hourly trends answered the older hours
The tail cursor this history was read at: /views:watch from it carries exactly what the history does not. A cursor is
The entities the selector resolved to, in scope
object
The entity’s uuid, the id its series and rows carry
Component or system
An event binding’s page, newest first
object
The alarm a rule’s event opened or resolved; history rows only
The deriving event rule’s name; history rows only
The owning entity’s uuid
The row’s id, the page order’s tiebreak
The event type’s name
Caught, caused, derived or scheduled
The occurrence’s lineage; history rows only
The transport that produced it; history rows only
The range read
A log binding’s page, newest arrival first
object
History rows only
The writing component’s uuid
History rows only
When the server received the line, the order the read pages in
The channel it arrived on
The time the line carried, else its arrival
A metric binding’s series
object
Every bucket of the grid, oldest first; on a read with a step
object
Samples in the bucket
The newest sample’s value in the bucket
The bucket’s start
The entity’s uuid
The series discriminator; empty for the owner-level series
The metric type’s name
The raw samples, oldest first; on a read without a step
object
Pages an event or log read further back; absent at the end
A property binding’s series
object
Every bucket of the grid, oldest first; on a read with a step
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 range opens; absent when none
The entity’s uuid
The series discriminator; empty for the owner-level series
The property type’s name
The changes, oldest first; on a read without a step
object
Example
{ "$schema": "/api/v1/schemas/RunViewsOutputBody.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"}