watchdog

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJSONEncodedServiceResults added in v1.3.4

func GetJSONEncodedServiceResults() ([]byte, error)

GetJSONEncodedServiceResults returns a list of the last 20 results 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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