Statistics
service_omni — Endpoints: Statistics¶
Location: backend/service_omni/app/api/v1/endpoints/statistics.py
Summary
- Lightweight statistics and reporting endpoints exposing health and aggregated counters for omni integrations.
Routes
GET /statistics/summary— Returns an aggregated snapshot (example fields:active_credentials_count,pending_exports,last_export_time).
Example response:
{
"active_credentials_count": 12,
"pending_exports": 3,
"last_export_time": "2026-05-21T22:11:00Z"
}
GET /statistics/{resource}— Resource-specific stats (e.g.,orders,exports,scrapes). Response shape depends on resource.
Implementation
- Implementation: backend/service_omni/app/api/v1/endpoints/statistics.py
Notes
- Use these endpoints for dashboards and simple health checks. They are intentionally lightweight and may aggregate data from logs or DB snapshots.