reports
Read-only analytics reports (ADR 0005) served by the separate planning-reports binary on port 8092, from the analytical database the planning-projector builds from this service's analytics topic. Not part of the OLTP API on port 8080.
How often each bottleneck step (and binding constraint) bound a PUBLISHED plan, by site
For the plans PUBLISHED in the half-open range [from, to) (by the CloudEvents time of CapacityPlanPublished: from inclusive, to exclusive), counts, per site (warehouse_id + location), how many had each bottleneck_step bound by each binding_constraint (LABOR, STATION, ...; empty for a plan created before the constraint was recorded), and `share`: that count as a fraction of the site's published plans in the range. Rows are ordered by site, then count descending. Drafts never count. Built from the analytics stream only (ADR 0005). `from` / `to` are optional RFC 3339 timestamps: both omitted means the 30 days ending now; only `to` means the 30 days before it; only `from` means from..now; the range must be non-empty and at most 366 days. 200 with `rows: []` when nothing matches.
Published plans with shortage and total shortage by site per day
For the plans PUBLISHED in [from, to) (from inclusive, to exclusive), per site and UTC day of the publication: how many were published (ALL of them, with or without shortage, so the rate is meaningful), how many had a shortage (> 0), the total shortage in orders, and `shortage_rate` (plans_with_shortage / plans_published). Days without a published plan are omitted. Ordered by day, then site. `from` / `to` as in /reports/bottleneck-frequency. 200 with `days: []` when nothing matches.
Plans created vs published per day, and create-to-publish latency by site
`days`: per site and UTC day, the plans created (by the CloudEvents time of CapacityPlanCreated) and the plans published (by CapacityPlanPublished) in [from, to) (from inclusive, to exclusive). `latency`: per site, over the plans published in the range whose creation was also observed, the median and 95th percentile (continuous, linear interpolation) of published - created, in seconds. Ordered by day, then site. `from` / `to` as in /reports/bottleneck-frequency. 200 with empty arrays when nothing matches.
How far the analytics projection is behind
The freshness lag of the projection all three reports read: `as_of` is the CloudEvents time of the newest event the projector has applied and `lag_seconds` is now minus `as_of` (never negative). Both are null until the first event is applied. A growing lag means the projector is down or behind, not that a report is wrong: it catches up when the projector does.