orxtra v0.13.0 /overseer.src.orxtra.overseer._health
On this page

HealthMonitor tracks per-event-type sliding windows of postcheck failures, repetitions, and tool errors, flagging a run as degraded once any rate exceeds a configurable threshold.

#overseer.src.orxtra.overseer._health

#overseer.src.orxtra.overseer._health

#HealthMetrics

HealthMetrics
FieldTypeDefault
postcheck_failuresint0
repetitionsint0
tool_errorsint0
total_eventsint0

#HealthMonitor

#record_event

python
def record_event(self, event_type: str, success: bool, is_repetition: bool=False) -> None

#is_degraded

python
def is_degraded(self, event_type: str) -> bool

#get_metrics

python
def get_metrics(self, event_type: str) -> HealthMetrics
Search