@karmaniverous/jeeves-watcher
    Preparing search index...

    Class SystemHealth

    Tracks system health via consecutive failure count and exponential backoff.

    Index

    Constructors

    Accessors

    • get currentBackoffMs(): number

      Compute the current backoff delay based on consecutive failures.

      Returns number

      Delay in milliseconds.

    • get failures(): number

      Current consecutive failure count.

      Returns number

    Methods

    • Sleep for the current backoff duration.

      Parameters

      • Optionalsignal: AbortSignal

        Optional abort signal.

      Returns Promise<void>

    • Record a system-level failure. If maxRetries is exceeded, triggers fatal error.

      Parameters

      • error: unknown

        The error that occurred.

      Returns boolean

      Whether the watcher should continue (false = fatal).

    • Record a successful system operation. Resets the failure counter.

      Returns void