app.routers.data_status¶
data_status ¶
Data freshness / provenance — surfaces what was last ingested for each source.
get_data_status
async
¶
Per-source ingestion + data freshness from the provenance table.
Returns one row per (table, source) with the latest data timestamp, when it was last ingested, the resulting lag in hours, and a status bucket (fresh / warn / stale) so the UI can colour-code at a glance.
Provenance comes from a sister table the upstream BirdCurve NL pipeline populates after each ingestion run; previously the dashboard ignored it.