module

Jane::Monitor

Class methods

alerts(results : Array(Check)) : Array(Check)

Filters results to only those in alert state

Source
display_status(config : Config, config_path : String = "config.toml")

display_status — runs checks and prints a table to stdout

Source
perform_checks(config : Config) : Array(Check)

perform_checks — iterates through all configured checks and collects Monitor::Check results. Each module follows the same contract: def check_*(config) : Array(Monitor::Check)

Source
wrap_message(msg : String, width : Int32 = 80) : Array(String)

Collapses newlines and splits a string into chunks of at most width characters, breaking at word boundaries where possible.

Source

Nested types