monitor

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultName is the default name of the complainer instance
	DefaultName = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

Monitor is responsible for routing failed tasks to the configured reporters

func NewMonitor

func NewMonitor(name string, cluster *mesos.Cluster, up uploader.Uploader, reporters map[string]reporter.Reporter, defaults bool, match matcher.FailureMatcher) *Monitor

NewMonitor creates the new monitor with a name, uploader and reporters

func (*Monitor) ListenAndServe

func (m *Monitor) ListenAndServe(addr string) error

ListenAndServe launches an http server on the requested address. The server is responsible for health checks

func (*Monitor) Run

func (m *Monitor) Run() error

Run does one run across failed tasks and reports any new failures

Jump to

Keyboard shortcuts

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