fettle v1.0.0 Fettle.RunnerSupervisor View Source
Starts and supervises Fettle.Runner processes.
start_link/1 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.
Start running a check periodically.
Options
scoreboard - module providing Fettle.ScoreBoard.result/2 compatible function (for testing).
start_checks([Fettle.Config.spec_and_mod()]) :: :ok
Start running a list of checks.