Expand description
A tokio task (and support machinery) for producing storage statistics.
Structs§
- Source
Statistics 🔒 - A wrapper around source and webhook statistics maps so we can hold them within a single lock.
Traits§
- AsStats 🔒
- Conversion trait to allow multiple shapes of data in
spawn_statistics_scraper
.
Functions§
- spawn_
statistics_ 🔒scraper - Spawns a task that continually (at an interval) writes statistics from storaged’s that are consolidated in shared memory in the controller.
- spawn_
webhook_ 🔒statistics_ scraper - Spawns a task that continually drains webhook statistics into `shared_stats.