save_metrics_state
Documentation for eth_defi.research.metrics_freshness.save_metrics_state function.
- save_metrics_state(state, path)
Atomically write freshness state.
The write goes through the same
atomicwritespattern as the sticky export state, so a crash mid-write never leaves a truncated state file behind.- Parameters
state (dict) – State mapping.
path (pathlib.Path) – Destination path.
- Return type
None