monitor

package
v0.0.0-...-29e6843 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// monitor "tracks and cleans up expired hosts and tasks"
	RunnerName = "monitor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

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

contains info about a notification that should be sent

func SlowProvisioningWarnings

func SlowProvisioningWarnings(settings *evergreen.Settings) ([]Notification, error)

slowProvisioningWarnings is a notificationBuilder to build any necessary warnings about hosts that are taking a long time to provision

type NotificationBuilder

type NotificationBuilder func(*evergreen.Settings) ([]Notification, error)

a function that outputs any necessary notifications

type Notifier

type Notifier struct {
	// functions which will be called to create any notifications that need
	// to be sent
	NotificationBuilders []NotificationBuilder
}

func (*Notifier) Notify

func (self *Notifier) Notify(settings *evergreen.Settings) error

create and send any notifications that need to be sent

type Runner

type Runner struct{}

func (*Runner) Name

func (r *Runner) Name() string

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, config *evergreen.Settings) error

Jump to

Keyboard shortcuts

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