Ping::Settings
Shared mutable settings for severity thresholds and chart colors. severity levels: 0=ok, 1=warn, 2=alert, 3=critical
Constants
APP_NAME = "ping-ui"
DEFAULT_INTERVAL_MS = 1000
HISTORY_DB_FILENAME = "history.sqlite3"
HISTORY_DB_OVERRIDE_ENV = "PING_UI_DB_PATH"
MAX_INTERVAL_MS = 5000
MAX_RECENT_HOSTS = 10
MIN_INTERVAL_MS = 100
SETTINGS_FILENAME = "settings.json"
Constructors
load
Sourcenew
SourceClass methods
config_dir
Sourcehistory_db_path
Sourcehistory_dir
Sourcesettings_path
SourceInstance methods
alert_threshold
Sourcecolor_alert
Sourcecolor_critical
Sourcecolor_warn
Sourcenormalize!
Sourcenotify_enabled?
Sourcenotify_failures_threshold
Sourcerecent_hosts
Sourcesave
Source