Insider.Detectors.RestartRecurrence (Insider v0.1.0)

Copy Markdown View Source

Detects repeated abnormal supervisor child terminations without owning a process.

The detector is a bounded streaming reducer. Callers supply their trusted receipt time in microseconds; an event's source-local ordering field is never interpreted as elapsed time.

Summary

Types

output()

@type output() ::
  {:incident, Insider.Finding.t()}
  | {:detector_error, Insider.Detectors.RestartRecurrence.Error.t()}

Functions

new(options \\ [])

@spec new(keyword()) ::
  {:ok, Insider.Detectors.RestartRecurrence.State.t()}
  | {:error, :invalid_options}

observe(state, event, observed_at_us)