Sample live backlog telemetry for a process path
GET/paths/:pathId/telemetry
Returns the current backlog depth/WIP read model for a process path's work pool — the SampleBacklog use case. This is a projection built from live WorkPool state, not persisted aggregate state. Side effect: if the pool is over its alarm threshold, publishes BacklogThresholdBreached (an existing, documented telemetry side effect of sampling — it does not mutate the WorkPool or WorkUnit aggregates themselves, so this remains a safe GET).
When the optional cutoffAt query parameter is supplied, this same read additionally reports — and publishes — the path's current remaining admission capacity for that CPT cutoff window (PathCapacityChanged, see ADR-0018). remainingCapacityKnown is false for a FlowFed path (no hard admission ceiling) or a ReleaseFed path with no WIP limit provisioned; remainingCapacityUnits is present only when remainingCapacityKnown is true. Omitting cutoffAt entirely skips capacity reporting and publishing, keeping every existing caller's behavior unchanged.
Request
Responses
- 200
- 400
- 404
- 500
Current backlog snapshot.
Malformed request body (invalid JSON), a missing required field (silently-defaulted zero values are never accepted), an invalid field value (e.g. negative quantity, empty path id), a pathId outside the deployment's declared process-path families (unknown-path-id), or a malformed query parameter (e.g. empty or non-RFC3339 cutoffAt), or a NUL character (U+0000) in the body or the query string (malformed-request-body: Postgres text cannot hold it, ADR-0044).
No resource exists at this path/id (a NUL character, U+0000, in the path never names a resource and answers the same 404).
An unexpected server-side failure (e.g. a repository or event-publisher error).