Documentation
¶
Index ¶
- type DNSResult
- type HTTPResult
- type Outage
- type PingResult
- type Store
- func (s *Store) Close() error
- func (s *Store) CloseOutage(id int64, endedAt int64) error
- func (s *Store) DNSStats(since int64) (avg float64, count int, err error)
- func (s *Store) DeleteOlderThan(before time.Time) error
- func (s *Store) InsertDNS(result DNSResult) error
- func (s *Store) InsertHTTP(result HTTPResult) error
- func (s *Store) InsertOutage(outage Outage) (int64, error)
- func (s *Store) InsertPing(result PingResult) error
- func (s *Store) LatestDNS() (*DNSResult, error)
- func (s *Store) LatestHTTP() (*HTTPResult, error)
- func (s *Store) LatestPing(target string) (*PingResult, error)
- func (s *Store) OpenOutage() (*Outage, error)
- func (s *Store) PingStats(target string, since int64) (avg float64, count int, lossCount int, err error)
- func (s *Store) QueryAllPings(since, until int64) ([]PingResult, error)
- func (s *Store) QueryDNS(since, until int64) ([]DNSResult, error)
- func (s *Store) QueryHTTP(since, until int64) ([]HTTPResult, error)
- func (s *Store) QueryOutages(since, until int64, limit int) ([]Outage, error)
- func (s *Store) QueryPings(target string, since, until int64) ([]PingResult, error)
- func (s *Store) RecentOutages(limit int) ([]Outage, error)
- func (s *Store) StartRetentionCleanup(retention time.Duration, stop <-chan struct{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPResult ¶
type PingResult ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) InsertHTTP ¶
func (s *Store) InsertHTTP(result HTTPResult) error
func (*Store) InsertPing ¶
func (s *Store) InsertPing(result PingResult) error
func (*Store) LatestHTTP ¶
func (s *Store) LatestHTTP() (*HTTPResult, error)
func (*Store) LatestPing ¶
func (s *Store) LatestPing(target string) (*PingResult, error)
func (*Store) OpenOutage ¶
func (*Store) QueryAllPings ¶
func (s *Store) QueryAllPings(since, until int64) ([]PingResult, error)
func (*Store) QueryOutages ¶
func (*Store) QueryPings ¶
func (s *Store) QueryPings(target string, since, until int64) ([]PingResult, error)
func (*Store) StartRetentionCleanup ¶
Click to show internal directories.
Click to hide internal directories.