reports
Read-only analytics reports (ADR 0012), served by cmd/st-reports from the separate analytical database the projector feeds from this context's own events. Days are UTC calendar days; from and to are inclusive dates.
Touches per delivered package, per day and tier
Per UTC day of deliveredAt and per tier (UNKNOWN while the package's LabelIssued is not projected): the delivered packages and the touches per package (mean, p50, p90 continuous percentiles). A touch is an applied journey scan of type PICKUP_DEPARTURE, DEPARTURE, TRANSIT_ARRIVAL, STATION_ARRIVAL, OUT_FOR_DELIVERY or DELIVERY_FAILED (SHIPMENT_CONFIRMED and DELIVERED are not touches). Days without a delivery are omitted.
Delivery outcomes and first-attempt success, per day
Per UTC day of the outcome instant (deliveredAt, returnedAt, declaredAt): packages delivered, delivered at the first attempt (no DELIVERY_FAILED scan), returned to the sender and lost. firstAttemptSuccessRate = firstAttemptDelivered / (packagesDelivered + packagesReturnedToSender + packagesLost); lostRate and returnToSenderRate share that denominator; meanAttemptsPerDeliveredPackage = (packagesDelivered + DELIVERY_FAILED scans of the delivered packages) / packagesDelivered, null on a day without deliveries. Days without an outcome are omitted.
How far the analytics projection is behind
asOf is the CloudEvents time of the newest event the projector applied; lagSeconds is now minus asOf, never negative. Both are null until the first event. One endpoint for every report: they all read the same projection.