healthcheck

package
v0.0.0-...-0ba22c9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 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 Group

type Group struct {
	Name   string
	Anchor string
	Nodes  []Node
}

Group gathers monitored nodes.

type HealthStatus

type HealthStatus struct {
	Groups []Group
}

HealthStatus stores health statuses of monitored nodes.

type Healthcheck

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

Healthcheck is responsible for storing latest statuses of monitored nodes.

func NewHealthcheck

func NewHealthcheck(applicationConfiguration *application.Configuration,
	monitoringConfiguration *monitoring.Configuration) *Healthcheck

NewHealthcheck method creates a new instance of healthcheck.

func (*Healthcheck) Start

func (h *Healthcheck) Start()

Start method starts the monitoring routines.

func (*Healthcheck) Status

func (h *Healthcheck) Status() HealthStatus

Status method returns a report containing statuses of monitored nodes.

func (*Healthcheck) UpdateBoard

func (h *Healthcheck) UpdateBoard(result checkResultInBoard)

UpdateBoard method stores new check result in the board.

type Node

type Node struct {
	Name         string
	Type         string
	Endpoint     string
	HTTPEndpoint bool
	Status       string
	Message      string
}

Node reports health status of a monitored node.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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