Count status transitions within a window

Counts status transitions within the half-open window [from, to), one count per status, keyed off each status's dedicated transition timestamp (failedfailed_at, pendingcreated_at, etc.).

This is a flow metric, not a snapshot: a single instruction that transitioned through several statuses inside the window contributes +1 to each of those counts, so the per-status counts do not sum to a row total. This answers questions like "how many instructions failed in the last 24 hours".

Hidden instructions are included only when the requester holds instructions:read_hidden.

Permission: instructions:read (plus instructions:read_hidden to include hidden instructions in the counts).

Query Params
date-time
required

Inclusive start of the window (ISO 8601, UTC if no offset supplied). Required so the count is always bounded.

date-time
required

Exclusive end of the window (ISO 8601, UTC if no offset supplied). Must be after from.

status
array of objects

Optional narrowing: omit for the full per-status breakdown, or pass one or more statuses to compute just those.

status
Allowed:
uuid

Scope the counts to a single module.

string
enum

Scope the counts by module type.

Allowed:
Responses

400

from/to missing, not ISO 8601, or to is not after from.

403

Missing instructions:read permission.

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json