Show analytics
analytics_overviewEVERY NUMBER THE DASH'S ANALYTICS PAGE SHOWS, as data, computed by the same code the page runs (so the two never disagree): shipped and its previous-window delta, autonomy (no review needed), the Pipeline (filed-in-window cohort, stage medians), a per-bucket series (shipped, time by phase, Retasc fee by outcome, labour, and who is behind each bucket), the Fleet table (per agent and runtime: finished, median work time, send-backs, reclaims, model, 7-day shape), the queue right now (ready, in flight, blocked, late, the issues blocking the most), review (lanes, waits, accept rate, untriaged intake), time and labour cost by phase and by change type, Retasc spend, the written findings, and the person roster. Use it when a human asks how their fleet or project is doing; build the chart yourself from what it returns. WINDOW: days (1, 7, 30 or 90 as on the page; default 30) or from+to (ISO 8601 or epoch ms, up to 366 days, within the last year), cut into calendar buckets in tz (default the org's zone). With no maxBars the window keeps its own unit (hours for 1 day, days for 7 and 30, weeks for 90), so "last 30 days" is the same window the Dash shows on a laptop; maxBars caps the bucket count, and a cap below that coarsens to wider buckets and snaps the window outward to whole ones. SCOPE: this key's own project by default. project (prefix or id) for another one, or allProjects: true for the whole org, ONLY when the key's principal is an owner or admin — a member's key asking for more is refused with FORBIDDEN. person (a member id from the people section) narrows to one human and their agents (owner/admin; a member's view is already their own). Money and the roster are owner/admin, as on the Dash. Every response carries asOf, timezone, the window, units and a one-line definition per metric. sections limits what is returned (summary, pipeline, series, fleet, queue, review, time, money, findings, people); bucketFrom+bucketTo add the per-issue card for one bucket when reading one person. Past the inline size cap it returns page.cursor: call again with the same arguments plus cursor for the rest. Billed as one read per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Custom window end, ISO 8601 or epoch ms. Pass with `from`. | |
| tz | No | IANA timezone the buckets are cut in. Default: the org's timezone (UTC if unset). | |
| days | No | Window length in days: 1, 7, 30 or 90 (any whole number 1-90). Default 30. Ignored when from/to are given. | |
| from | No | Custom window start, ISO 8601 or epoch ms. Pass with `to`. | |
| cursor | No | From a previous page's `page.cursor`, with the same other arguments. | |
| person | No | Member id: one human plus their agents (owner/admin; or your own). | |
| maxBars | No | Most buckets the series may have (1-400). Default: no cap, so the window keeps its own unit, as on the Dash on a laptop. A smaller cap coarsens the buckets and widens the window to whole ones; it never makes a bucket finer than the window's unit. | |
| project | No | Another project's prefix or id (owner/admin only). Default: this key's project. | |
| bucketTo | No | See bucketFrom. | |
| sections | No | Return only these sections. Default: all. | |
| bucketFrom | No | With bucketTo and a person: the per-issue card for that bucket (a series row's from/to). | |
| allProjects | No | The whole org (owner/admin only). |