Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceCheck ¶
type ServiceCheck struct { CheckName string `json:"check"` Host string `json:"host_name"` Ts int64 `json:"timestamp"` Status ServiceCheckStatus `json:"status"` Message string `json:"message"` Tags []string `json:"tags"` OriginFromUDS string `json:"-"` OriginFromClient string `json:"-"` Cardinality string `json:"-"` }
ServiceCheck holds a service check (w/ serialization to DD api format)
func (ServiceCheck) String ¶
func (sc ServiceCheck) String() string
type ServiceCheckStatus ¶
type ServiceCheckStatus int
ServiceCheckStatus represents the status associated with a service check
const ( ServiceCheckOK ServiceCheckStatus = iota ServiceCheckWarning ServiceCheckStatus = 1 ServiceCheckCritical ServiceCheckStatus = 2 ServiceCheckUnknown ServiceCheckStatus = 3 )
Enumeration of the existing service check statuses, and their values
func (ServiceCheckStatus) String ¶
func (s ServiceCheckStatus) String() string
String returns a string representation of ServiceCheckStatus
type ServiceChecks ¶
type ServiceChecks []*ServiceCheck
ServiceChecks is a collection of ServiceCheck
func (ServiceChecks) MarshalStrings ¶
func (sc ServiceChecks) MarshalStrings() ([]string, [][]string)
MarshalStrings converts the service checks to a sorted slice of string slices
Click to show internal directories.
Click to hide internal directories.