health

package
v0.0.0-...-3f59448 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package health contains routines that periodically reports health information of the agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck struct {
	contracts.ICorePlugin
	// contains filtered or unexported fields
}

HealthCheck encapsulates the logic on configuring, starting and stopping core plugins

func NewHealthCheck

func NewHealthCheck(context context.T) *HealthCheck

NewHealthCheck creates a new health check core plugin.

func (*HealthCheck) Execute

func (h *HealthCheck) Execute(context context.T) (err error)

Execute starts the scheduling of the health check plugin

func (*HealthCheck) Name

func (h *HealthCheck) Name() string

Name returns the Plugin Name

func (*HealthCheck) RequestStop

func (h *HealthCheck) RequestStop(stopType contracts.StopType) (err error)

RequestStop handles the termination of the health check plugin job

Jump to

Keyboard shortcuts

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