alert

package
v9.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateAlerter

type AggregateAlerter []Alerter

func (AggregateAlerter) NotUnhealthy

func (a AggregateAlerter) NotUnhealthy(now time.Time) error

func (AggregateAlerter) Unhealthy

func (a AggregateAlerter) Unhealthy(now time.Time) error

type Alerter

type Alerter interface {
	NotUnhealthy(time.Time) error
	Unhealthy(time.Time) error
}

type EmailingAlerter

type EmailingAlerter struct {
	Logger              lager.Logger
	UAAClient           uaa_go_client.Client
	NotificationsClient NotificationsClient
	ToAddress           string
	SystemDomain        string
	ClusterIdentifier   string
}

func (*EmailingAlerter) NotUnhealthy

func (a *EmailingAlerter) NotUnhealthy(now time.Time) error

func (*EmailingAlerter) Unhealthy

func (a *EmailingAlerter) Unhealthy(now time.Time) error

type LoggingAlerter

type LoggingAlerter struct {
	Logger lager.Logger
}

func (*LoggingAlerter) NotUnhealthy

func (a *LoggingAlerter) NotUnhealthy(timestamp time.Time) error

func (*LoggingAlerter) Unhealthy

func (a *LoggingAlerter) Unhealthy(timestamp time.Time) error

type NotificationsClient

type NotificationsClient interface {
	Email(clientToken string, to string, subject string, html string, kindID string) error
}

type SwitchboardAlerter

type SwitchboardAlerter struct {
	Logger            lager.Logger
	SwitchboardClient SwitchboardClient
	NoOp              bool
}

func (*SwitchboardAlerter) NotUnhealthy

func (s *SwitchboardAlerter) NotUnhealthy(timestamp time.Time) error

func (*SwitchboardAlerter) Unhealthy

func (s *SwitchboardAlerter) Unhealthy(timestamp time.Time) error

type SwitchboardClient

type SwitchboardClient interface {
	EnableClusterTraffic() error
	DisableClusterTraffic() error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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