Documentation ¶
Overview ¶
Package monitoring is responsible for handling node monitoring (tcp and http checks) especially for tosca.nodes.Compute and tosca.nodes.SoftwareComponent node templates Present limitation : only one monitoring check by node instance is allowed
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Check ¶
type Check struct { ID string TimeInterval time.Duration Report CheckReport CheckType CheckType // 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( INITIAL, PASSING, CRITICAL WARNING )
const ( // CheckStatusINITIAL is a CheckStatus of type INITIAL CheckStatusINITIAL CheckStatus = iota // CheckStatusPASSING is a CheckStatus of type PASSING CheckStatusPASSING // CheckStatusCRITICAL is a CheckStatus of type CRITICAL CheckStatusCRITICAL // CheckStatusWARNING is a CheckStatus of type WARNING CheckStatusWARNING )
func ParseCheckStatus ¶
func ParseCheckStatus(name string) (CheckStatus, error)
ParseCheckStatus attempts to convert a string to a CheckStatus
func (CheckStatus) String ¶
func (i CheckStatus) String() string
type CheckType ¶
type CheckType int
CheckType x ENUM( TCP, HTTP )
func ParseCheckType ¶
ParseCheckType attempts to convert a string to a CheckType