# `Insider.Collector.SystemMonitor`
[🔗](https://github.com/hiivemarkets/insider/blob/v0.1.0/lib/insider/collector/system_monitor.ex#L1)

Supervised, bounded collection of selected ERTS system anomalies.

OTP 28 and 29 use an isolated `trace:system/3` session. OTP 27 requires an
explicit disposable-node legacy capability and refuses any existing global
system monitor. Raw monitor tuples are ordinary, forgeable mailbox messages;
they are treated as hostile input and projected through a closed schema.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `flush`

```elixir
@spec flush(GenServer.server()) ::
  {:ok, map()} | {:error, :receiver_busy | :unavailable}
```

Waits for the receiver's current mailbox prefix, then drains visible evidence.

Concurrent VM delivery after the receiver barrier is outside this guarantee.

# `start_link`

```elixir
@spec start_link(
  {Insider.Recorder.Handle.t(), Insider.Collector.SystemMonitor.Policy.t(),
   keyword()}
) ::
  GenServer.on_start()
```

# `start_link`

```elixir
@spec start_link(
  Insider.Recorder.Handle.t(),
  Insider.Collector.SystemMonitor.Policy.t(),
  keyword()
) ::
  GenServer.on_start()
```

# `status`

```elixir
@spec status(GenServer.server()) :: {:ok, map()} | {:error, :unavailable}
```

# `stop`

```elixir
@spec stop(GenServer.server()) :: {:ok, map()} | {:error, :unavailable}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
