Insider.Collector.SystemMonitor.Policy (Insider v0.1.0)

Copy Markdown View Source

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.

Summary

Types

event_option()

@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()

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

Functions

new(options)

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

valid?(policy)

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