monitor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Supervisor

type Supervisor interface {
	log.Hook
	Start() error
	Stop() error
}

Supervisor is a monitor client that pushes data and alerts to a server. It is also a logrus Hook to facilitate capturing error logs when emitted

func New added in v0.3.0

func New(broker eventbus.Broker, blockTimeThreshold time.Duration, monType, monURL string) (Supervisor, error)

New is a factory method to create a Supervisor

Jump to

Keyboard shortcuts

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