Skip to main content

reports

Read-only analytics reports (ADR 0012), served by cmd/lm-reports from the separate analytical database the projector feeds from this context's own events and analytics topics. Days are UTC calendar days; from and to are inclusive dates; a rate or mean whose denominator is zero is null.

📄️Route efficiency per day and delivery station

Per UTC day of completion and per delivery station (stationNodeId), over the completed routes: a route counts as completed when every package it took out for delivery has an attempt (the precondition of CompleteRoute, which raises no event) and its RoutePlanned is projected; its day is the day of its last attempt. routesCompleted is their count; stopsPerRoute = stops / routesCompleted (stops = the routes' RoutePlanned stopCount); packagesPerStop = packages attempted / distinct stops attempted (every stop of a completed route was attempted, so the denominator is the stops); declaredCostPerStopCents = the stop-weighted mean of the waves' declared costPerStopCents over the routes whose wave declared a cost, null when none did; costPerPackageCents = declaredCostPerStopCents x the stops of those routes / their packages, null when undefined. Days without a completed route are omitted.

📄️Delivery attempt outcomes and first-attempt success per day and station

Per UTC day and per delivery station (the station of the attempt's route, UNKNOWN while its PackageOutForDelivery is not projected): attempts, deliveredAttempts and failedAttempts are the DeliveryAttempted of the day by outcome; a success is DELIVERED or COLLECTED (both count in deliveredAttempts, ADR 0017), a failure FAILED; packagesAttempted are the packages whose FIRST attempt fell on the day, packagesWithFirstAttemptSuccess those of them delivered at it; firstAttemptSuccessRate = packagesWithFirstAttemptSuccess / packagesAttempted; meanAttemptsPerPackage = all the attempts of those packages (any day) / packagesAttempted; both null without a first attempt. returnsInitiated counts the PackageReturnInitiated of the day (its CloudEvents time) at the station of the package's latest attempt. Days without any of these are omitted.

📄️Share of deliveries inside their day-of ETA window per day and station

Per UTC day of the DELIVERED attempt and per delivery station (the station of the attempt's route, UNKNOWN while its PackageOutForDelivery is not projected). deliveriesWithEta counts the delivered packages that had a StopEtaWindowAssigned window for the same route (ADR 0013); deliveriesInsideEta those delivered with etaStart <= attempt instant <= etaEnd (both bounds are inside), deliveriesBeforeEta before etaStart and deliveriesAfterEta after etaEnd; etaHitRate = deliveriesInsideEta / deliveriesWithEta, null when no delivery of the day and station had an ETA. Only the attempt that DELIVERED counts; a delivered package whose ETA was never projected (no ETA was raised, or the projection has not caught up) is not in the denominator. Days without a delivery are omitted. The windows are a deterministic spread of the route's stops over the wave window, so the first weeks of etaHitRate are a baseline, not a verdict.

📄️Wave stop-capacity utilisation per service date and station

Per serviceDate and delivery station of the scheduled waves: wavesScheduled, wavesCancelled (those with a DeliveryWaveCancelled), stopCapacity (the sum of the scheduled stopCapacity) and stopsInducted (the sum of each wave's highest assignedStops of DeliveryWaveCapacityChanged, 0 without one); utilisation = stopsInducted / stopCapacity, null when the capacity is 0. Cancelled waves stay in every sum. Dates without a wave are omitted.