Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.