Documentation
¶
Index ¶
- type Check
- type CheckState
- type ChecksArr
- type Service
- func (s *Service) CheckByID(id string) (*Check, error)
- func (s *Service) Checks() []*Check
- func (s *Service) KeepRunning()
- func (s *Service) RegisterCheck(check *Check, sendAlerts []string, checkIdx int) error
- func (s *Service) RegisterNotifier(notifier notifiers.Notifier) error
- func (s *Service) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
Data servicepb.Check
Backoff backoffs.Backoff
Notifiers []notifiers.Notifier
Log *log.Logger
Store storage.EventStorage
Checker checks.Checker
Assertions []assertions.Asserter
Stats *stats.CheckStats
// send an alert only after N fails
FailCountAlertThreshold int
// continue to send fail alerts
RepeatFailAlerts bool
ConfigRank int
// contains filtered or unexported fields
}
func NewCheck ¶
func NewCheck(cfg checks.Config, eventStorage storage.EventStorage, preferences config.Preferences) (*Check, error)
func (*Check) DisplayState ¶
func (*Check) RecentMetrics ¶
type CheckState ¶
type CheckState int
const ( Disabled CheckState = iota Unknown Successful Failing )
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func (*Service) KeepRunning ¶
func (s *Service) KeepRunning()
KeepRunning is called to wait indefinitely while the service runs.
func (*Service) RegisterCheck ¶
func (*Service) RegisterNotifier ¶
Click to show internal directories.
Click to hide internal directories.