API Reference Kepler v#0.1.0

Copy Markdown View Source

Modules

An event router that lives inside your application.

Kepler measuring its own cost, and shedding work when it exceeds it.

Raised when a Kepler declaration cannot be compiled.

Reads and validates Kepler's application environment.

The values a fire when: condition is evaluated against.

The macros behind use Kepler.

The bounded queue between a firing watch and the outside world.

The event a watch fires. Kepler's entire output.

A fixed-layout, allocation-free histogram backed by an :counters array.

The single process that turns counters into conditions.

Owns everything installed at boot: counters, ring buffers, the :telemetry attachments, and the :logger handler behind report sources.

A fixed-size ring of recent terms, written in O(1) and read only when a watch fires.

Where events go.

Calls a function in your application with each event.

POSTs each event as JSON to a URL.

Tier 2: named processes, read on the tick.

Tier 0: crash and supervisor reports, enriched with what OTP already captured.

Tier 1: telemetry events folded into lock-free counters.

Tier 2: whole-node statistics, read on the tick.

Kepler's supervision tree, started for you when the :kepler application boots.

Tier 0: thresholds the VM enforces on Kepler's behalf.

How Kepler.Sink.Webhook makes an HTTP request.

The default transport, built on OTP's :httpc.

The debounce state machine behind every watch.

A single compiled watch declaration.