reporter

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StartingState = health.HealthStateRepairing
	HealthyState  = health.HealthStateHealthy
	WarningState  = health.HealthStateWarning
	ErrorState    = health.HealthStateError
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthComponent

type HealthComponent interface {
	Healthy()
	Warning(message string)
	Error(err error)
	SetHealth(healthState health.HealthState, message *string, params map[string]interface{})
	Status() health.HealthState
	GetHealthCheck() health.HealthCheckResult
}

HealthComponent is an extensible component that represents one part of the whole health picture for a service.

type HealthReporter

type HealthReporter interface {
	status.HealthCheckSource
	InitializeHealthComponent(name string) (HealthComponent, error)
	GetHealthComponent(name string) (HealthComponent, bool)
	// contains filtered or unexported methods
}

func NewHealthReporter

func NewHealthReporter() HealthReporter

NewHealthReporter - creates a new HealthReporter; an implementation of status.HealthCheckSource which initializes HealthComponents to report on the health of each individual health.CheckType.

Jump to

Keyboard shortcuts

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