Documentation ¶
Index ¶
Constants ¶
View Source
const ( PROBE_HISTORY_LEN = 40 INCIDENT_HISTORY_LEN = 10 LOG_RESTORE_BYTES = 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Incident ¶
type Incident struct { Target *url.URL Status Status Message string CausedAt time.Time ResolvedAt time.Time }
func NewIncident ¶
func (*Incident) IsContinued ¶
func (*Incident) SameTarget ¶
type IncidentHandler ¶
type ProbeHistory ¶
type ProbeHistoryMap ¶
type ProbeHistoryMap map[string]*ProbeHistory
func (ProbeHistoryMap) AsSortedArray ¶
func (hs ProbeHistoryMap) AsSortedArray() []*ProbeHistory
type Record ¶
type Record struct { CheckedAt time.Time Target *url.URL Status Status Message string Latency time.Duration }
func ParseRecord ¶
type Store ¶
type Store struct { sync.Mutex Path string ProbeHistory ProbeHistoryMap CurrentIncidents []*Incident IncidentHistory []*Incident OnIncident []IncidentHandler // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.