fettle v0.1.0 Fettle.RunnerSupervisor View Source

Starts and supervises Fettle.Runner processes.

start_link/2 starts the supervisor which creates Fettle.Runner processes for a list of checks, potentially from config, linking the current process to the supervisor.

start_check/2 is subsequently used for dynamically adding new checks; it takes a tuple {%Spec{}, CheckerModule, args} to define the check, and an optional keyword list (which is principally for debugging).

Clients will normally prefer Fettle.add/3 to dynamically add checks.

Link to this section Summary

Functions

Return the number of checks currently configured

Start running a check periodically

Start running a list of checks

Link to this section Functions

Return the number of checks currently configured.

Link to this function start_check(check, opts \\ []) View Source

Start running a check periodically.

Options

scoreboard - module providing Fettle.ScoreBoard.result/2 compatible function (for testing).

Link to this function start_checks(checks) View Source
start_checks([Fettle.Config.spec_and_mod]) :: :ok

Start running a list of checks.