resolve_metrics_state_path

Documentation for eth_defi.research.metrics_freshness.resolve_metrics_state_path function.

resolve_metrics_state_path(data_dir)

Resolve the metrics freshness state path for the stablecoin bundle.

VAULT_METRICS_STATE_PATH is an explicit override, following the VAULT_EXPORT_STATE_PATH precedent. Otherwise the state file lives under the pipeline data directory. The crypto bundle does not use this helper: its state file is always derived from the bundle’s sticky-state path, so one env override can never point both bundles at the same file.

Parameters

data_dir (pathlib.Path) – Pipeline data directory.

Returns

State file path.

Return type

pathlib.Path