struct

JaneHQ::AlertGroupRecord

Inherits Struct < Value < Object

A row from the alert_groups table: one rule — what to watch, which check results to care about, and how to deliver the alert. An empty services, statuses or events list means "any".

Constructors

from_rs(rs : DB::ResultSet) : AlertGroupRecord
Source
new(id : Int64, name : String, enabled : Bool, services : Array(String), statuses : Array(String), events : Array(String), alert_type : String, alert_target : String, alert_count : String, alert_frequency_minutes : Int32)
Source

Class methods

parse_list(raw : String) : Array(String)

The three condition lists are stored as JSON arrays, like checks.tags.

Source

Instance methods

alert_count
Source
alert_count_label
Source
alert_frequency_label
Source
alert_frequency_minutes
Source
alert_target
Source
alert_type
Source
alert_type_label
Source
enabled
Source
event_summary
Source
events
Source
name
Source
service_summary
Source
services
Source
status_summary
Source
statuses
Source