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.
Click to show internal directories.
Click to hide internal directories.