Reporting and customer analytics
In this architecture, dashboard references mean customer analytics unless a page explicitly describes an engineering or operations view. Customer analytics are rebuildable CQRS projections of committed Incident, Investigation, and Ticket events; they are not direct queries against Cosmos DB and are not an authority for domain state.
Architecture
ADR-0022 selects Azure SQL Database for the reporting projection and React dashboards through a Veritas BFF. Power BI and other BI products are external integrations through governed APIs, not direct readers of the event store or reporting database.
Data model
The reporting model is shaped around customer questions rather than event-document shape. It can contain:
- incident, investigation, and ticket facts keyed by tenant and domain identity;
- dimensions for time, severity, classification, customer hierarchy, and other supported filters;
- precomputed aggregates for trends, volumes, response measures, and service-level analysis;
- projection checkpoints or applied-event identities for idempotency;
- source stream sequence so freshness and repair can be reasoned about.
Every table carries tenant scope. Azure SQL Row-Level Security and the BFF’s authorization boundary enforce customer isolation. Cross-tenant advisor views require an explicit authorized capability; they are not obtained by removing tenant filters.
Projection behavior
- Apply an event once using event identity or source stream sequence.
- Preserve per-stream order and reject or defer a gap rather than guessing state.
- Record a checkpoint that supports restart and bounded replay.
- Expose projection freshness to the API so a user can distinguish a current view from one still catching up.
- Treat schema migrations and projector code as a versioned pair.
- Rebuild into a shadow schema or database, validate it, and switch readers rather than corrupting the active projection in place.
Technology boundaries
Azure SQL is the default for most operational projections and is the selected customer-analytics store. PostgreSQL is used for selected AI engineering and Temporal services; it is not the canonical reporting store. Cosmos DB remains the event write model and is not used for customer dashboard aggregation.
The earlier data-model page that describes PostgreSQL reporting conflicts with ADR-0022 and the resolved V3 technology boundary. This page follows ADR-0022.
Retention and rebuild
A complete reporting rebuild may need both the six-month hot Cosmos tier and the one-year cold Blob archive under the intended retention model; today it reads live streams because retention is not yet implemented. A reporting projection can retain derived analytics per its approved customer and compliance requirements, but it must not silently extend source personal-data retention or bypass deletion.
Customer analytics versus operational views
| View | Purpose | Authority |
|---|---|---|
| Customer analytics | Trends, aggregations, drill-down, and customer reporting | Derived Azure SQL reporting projection |
| Operational domain view | Current queues, details, and user workflows | Derived operational projection, primarily Azure SQL |
| Raw-event engineering view | Replay diagnosis and event inspection | Read-only tooling over authorized event data or a dedicated index |
| Domain state | Command validation and authoritative history | Incident, Investigation, or Ticket event stream |
Only the first row is meant by dashboard references in this section.