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

Bounded, pure-data policy for ERTS system-event collection.

Legacy node-global monitoring is an explicit compatibility selection. Trusted
environment, target, and runtime-feature facts come from `Insider.Policy.Context`
at collector startup, never from this caller-created event policy.

# `event_option`

```elixir
@type event_option() ::
  {:long_gc, pos_integer()}
  | {:long_message_queue, {non_neg_integer(), pos_integer()}}
  | {:long_schedule, pos_integer()}
  | {:large_heap, pos_integer()}
  | {:busy_port, true}
  | {:busy_dist_port, true}
```

# `t`

```elixir
@type t() :: %Insider.Collector.SystemMonitor.Policy{
  events: [event_option()],
  legacy_node_global: boolean()
}
```

# `new`

```elixir
@spec new(keyword()) :: {:ok, t()} | {:error, :invalid_policy}
```

# `valid?`

```elixir
@spec valid?(term()) :: boolean()
```

---

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