Documentation ¶
Index ¶
- Constants
- Variables
- func CompareRecords(x, y api.Record) bool
- func IncidentIsContinued(i *api.Incident, r api.Record) bool
- func NewIncident(r api.Record) *api.Incident
- type IncidentHandler
- type ProbeHistory
- type ProbeHistoryMap
- type Store
- func (s *Store) AddTarget(target *url.URL)
- func (s *Store) Close() error
- func (s *Store) CurrentIncidents() []*api.Incident
- func (s *Store) Err() error
- func (s *Store) Freeze() freeze.Status
- func (s *Store) IncidentHistory() []*api.Incident
- func (s *Store) ProbeHistory() []*ProbeHistory
- func (s *Store) Report(r api.Record)
- func (s *Store) ReportInternalError(scope, message string)
- func (s *Store) Restore() error
Constants ¶
View Source
const ( PROBE_HISTORY_LEN = 40 INCIDENT_HISTORY_LEN = 10 )
Variables ¶
View Source
var (
LogRestoreBytes int64 = 100 * 1024 * 1024
)
Functions ¶
func CompareRecords ¶ added in v0.5.0
func IncidentIsContinued ¶ added in v0.5.0
Types ¶
type IncidentHandler ¶
type ProbeHistoryMap ¶
type ProbeHistoryMap map[string]*ProbeHistory
func (ProbeHistoryMap) Append ¶ added in v0.3.0
func (hs ProbeHistoryMap) Append(r api.Record)
type Store ¶
type Store struct { Path string Console io.Writer OnIncident []IncidentHandler IncidentCount int // contains filtered or unexported fields }
func (*Store) CurrentIncidents ¶
func (*Store) IncidentHistory ¶
func (*Store) ProbeHistory ¶
func (s *Store) ProbeHistory() []*ProbeHistory
func (*Store) ReportInternalError ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.