JobMetricsΒΆ
Defined in dccd.daemon.health
- class JobMetrics(last_run_at=None, last_success_at=None, rows_collected=0, errors_count=0)[source]
Bases:
objectPer-job health metrics, updated after every execution attempt.
errors_countis a consecutive failure counter: it resets to 0 wheneverHealthMonitor.record_successis called, so it reflects the current streak of failures rather than a lifetime total.- Parameters:
- last_run_atfloat or None
Unix timestamp of the most recent execution attempt (success or failure).
- last_success_atfloat or None
Unix timestamp of the most recent successful execution.
Noneuntil the first success.- rows_collectedint
Cumulative number of rows saved across all successful runs.
- errors_countint
Number of consecutive failures since the last success. Resets to 0 on the next successful run.