Expand description
Integrity monitoring traits (read-only, async).
Powers the /monitoring/integrity admin endpoint and the periodic
MetricsCollector slow-path DB checks. All queries run on a single
connection for snapshot consistency.
Async because both callers (monitoring handler, metrics collector) are
in async Tokio contexts. The impl lives on DieselDb (diesel-async pool),
not DatabaseHandler (sync r2d2 pool), eliminating the spawn_blocking
bridge that the old sync path required.
Individual sub-query methods are test-only (gated behind test-utils).
Production code calls get_integrity_query_results which runs the
DB-backed checks in one connection checkout.
Traitsยง
- Integrity
Reader - Aggregated integrity checks for the Hypercall persistence layer.