watchdog

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceStatusesAsJSON added in v1.11.0

func GetServiceStatusesAsJSON() ([]byte, error)

GetServiceStatusesAsJSON the JSON encoding of all core.ServiceStatus recorded

func GetUptimeByServiceGroupAndName added in v1.11.0

func GetUptimeByServiceGroupAndName(group, name string) *core.Uptime

GetUptimeByServiceGroupAndName returns the uptime of a service based on its group and name

func HandleAlerting added in v1.0.0

func HandleAlerting(service *core.Service, result *core.Result)

HandleAlerting takes care of alerts to resolve and alerts to trigger based on result success or failure

func Monitor

func Monitor(cfg *config.Config)

Monitor loops over each services and starts a goroutine to monitor each services separately

func UpdateServiceStatuses added in v1.9.0

func UpdateServiceStatuses(service *core.Service, result *core.Result)

UpdateServiceStatuses updates the slice of service statuses

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL