healthcheck

package
v0.0.0-...-675665f Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Healthcheck

type Healthcheck struct {
	Name       string                       `json:"name"`
	HTTPChecks []*httpcheck.HTTPHealthcheck `json:"http_checks"`
}

Healthcheck represents one entire healthcheck. A healthcheck has a name and contains one or more steps that make up the healthcheck.

func CreateOrUpdateHealthcheck

func CreateOrUpdateHealthcheck(healthcheck *Healthcheck) (*Healthcheck, error)

CreateOrUpdateHealthcheck will create or update the specified healthcheck in the database.

func ImportServiceFile

func ImportServiceFile(contentType string, filepath string) ([]*Healthcheck, error)

ImportServiceFile will parse the file at the given location and load any service definitions found into the running system Note that this will merge any existing definitions that match the same ids, which will allow history to be retained.

func ListHealthchecks

func ListHealthchecks() ([]*Healthcheck, error)

ListHealthchecks will return an array of all known healthchecks, read from the database.

Jump to

Keyboard shortcuts

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