Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Check ¶
type Check struct { ID string TCPAddress string TimeInterval time.Duration Report CheckReport // contains filtered or unexported fields }
Check represents a registered check
func NewCheckFromID ¶
NewCheckFromID allows to instantiate a new Check from an pre-existing ID
type CheckFilterFunc ¶
type CheckFilterFunc func(CheckReport) bool
CheckFilterFunc defines a filter function for CheckReport
type CheckReport ¶
type CheckReport struct { DeploymentID string NodeName string Instance string Status CheckStatus }
CheckReport represents a node check report including its status
type CheckStatus ¶
type CheckStatus int
CheckStatus x ENUM( PASSING, CRITICAL )
const ( // PASSING is the status of a passing check PASSING CheckStatus = iota // CRITICAL is the status of a critical check CRITICAL )
const ( // CheckStatusPASSING is a CheckStatus of type PASSING CheckStatusPASSING CheckStatus = iota // CheckStatusCRITICAL is a CheckStatus of type CRITICAL CheckStatusCRITICAL )
func ParseCheckStatus ¶
func ParseCheckStatus(name string) (CheckStatus, error)
ParseCheckStatus attempts to convert a string to a CheckStatus
func (CheckStatus) String ¶
func (x CheckStatus) String() string
String implements the Stringer interface.
Click to show internal directories.
Click to hide internal directories.