health

package
v0.0.0-...-4d3f714 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Health

type Health struct {
	ServiceName                 string     `json:"serviceName,omitempty"`
	Version                     string     `json:"version,omitempty"`
	Status                      StatusCode `json:"status,omitempty"`
	ConnectedConfigCenterClient bool       `json:"connectedConfigCenterClient"`
	ConnectedMonitoring         bool       `json:"connectedMonitoring"`
	Error                       string     `json:"error,omitempty"`
}

Health has details about health of a service

func GetMesherHealth

func GetMesherHealth() *Health

GetMesherHealth returns health

type StatusCode

type StatusCode string

StatusCode is type of string

const (
	//Red is a const
	Red StatusCode = "red"
	//Green is a const
	Green StatusCode = "green"
)

Jump to

Keyboard shortcuts

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