Documentation ¶
Index ¶
Constants ¶
View Source
const ( StandardInterval = time.Minute StandardPriority = hc.Warning )
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(hc *HealthCheck)
Register will add a healthcheck to our registry, causing it to be tested periodically and reported on
Types ¶
type HealthCheck ¶
type HealthCheck struct { Id string `json:"-"` ServiceName string `json:"-"` ServiceVersion uint64 `json:"-"` Hostname string `json:"-"` InstanceId string `json:"-"` Checker hc.Checker `json:"-"` Interval time.Duration `json:"interval"` Priority hc.Priority `json:"priority"` }
HealthCheck represents a single health check
Click to show internal directories.
Click to hide internal directories.