Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusOK = "ok" StatusWarning = "warning" StatusError = "error" )
Status constants for health check results.
Variables ¶
This section is empty.
Functions ¶
func WorstStatus ¶
WorstStatus returns the more severe of two statuses.
Types ¶
type CheckResult ¶
type CheckResult struct {
Name string `json:"name"`
Status string `json:"status"`
Message string `json:"message"`
Details interface{} `json:"details,omitempty"`
Fix string `json:"fix,omitempty"`
}
CheckResult is a single health check outcome.
type Deps ¶
type Deps interface {
PIDTracker() *goprocess.FilePIDTracker
ProcessManager() *goprocess.ProcessManager
ProxyManager() *proxy.ProxyManager
ScriptRegistry() *script.Registry
SessionRegistry() *session.SessionRegistry
AlertStore() *alert.ProcessAlertStore
StartupLog() *startuplog.StartupLogStore
StartedAt() time.Time
ClientCount() int64
Version() string
}
Deps abstracts the daemon capabilities needed by health checks.
Click to show internal directories.
Click to hide internal directories.