watchdog

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJSONEncodedServiceStatuses added in v1.9.0

func GetJSONEncodedServiceStatuses() ([]byte, error)

GetJSONEncodedServiceStatuses returns a list of core.ServiceStatus for each services encoded using json.Marshal. The reason why the encoding is done here is because we use a mutex to prevent concurrent map access.

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