Documentation ¶
Index ¶
Constants ¶
View Source
const ( SeverityCritical = "CRITICAL" SeverityWarning = "WARNING" SeverityDown = "DOWN" TypeSelf = "SELF" TypeMetrics = "METRICS" TypeInfrastructure = "INFRASTRUCTURE" TypeInternalDependency = "INTERNAL_DEPENDENCY" TypeExternalDependency = "EXTERNAL_DEPENDENCY" TypeInternetConnectivity = "INTERNET_CONNECTIVITY" )
Convenience constants
Variables ¶
This section is empty.
Functions ¶
func CreateHealthCheck ¶
CreateHealthCheck is used to create a healthcheck on the given route
Types ¶
type Dependency ¶
type Dependency struct {
Name string `json:"service_name,omitempty"`
}
The Dependency struct holds the name of an upstream service that the health check depends on for it's status.
type HealthCheckResponse ¶
type HealthCheckResponse struct { Actionable bool `json:"actionable"` Healthy bool `json:"healthy"` Name string `json:"name"` Type string `json:"type"` Severity string `json:"severity,omitempty"` Message string `json:"message,omitempty"` Dependency Dependency `json:"dependent_on,omitempty"` AdditionalInfo map[string]interface{} `json:"additional_info,omitempty"` Link string `json:"link,omitempty"` }
The HealthCheckResponse struct defines the return type of a HealthCheck call
Click to show internal directories.
Click to hide internal directories.