Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckResult ¶
type HealthCheckResult struct { // A constant representing the type of health check. Values should be uppercase, underscore delimited, ascii letters with no spaces, ([A-Z_]). Type CheckType `` /* 166-byte string literal not displayed */ // Health state of the check. State HealthState `conjure-docs:"Health state of the check." json:"state"` // Text describing the state of the check which should provide enough information for the check to be actionable when included in an alert. Message *string `` /* 166-byte string literal not displayed */ // Additional redacted information on the nature of the health check. Params map[string]interface{} `conjure-docs:"Additional redacted information on the nature of the health check." json:"params"` }
Metadata describing the status of a service.
func (HealthCheckResult) MarshalJSON ¶
func (o HealthCheckResult) MarshalJSON() ([]byte, error)
func (HealthCheckResult) MarshalYAML ¶
func (o HealthCheckResult) MarshalYAML() (interface{}, error)
func (*HealthCheckResult) UnmarshalJSON ¶
func (o *HealthCheckResult) UnmarshalJSON(data []byte) error
func (*HealthCheckResult) UnmarshalYAML ¶
func (o *HealthCheckResult) UnmarshalYAML(unmarshal func(interface{}) error) error
type HealthState ¶
type HealthState struct {
// contains filtered or unexported fields
}
func New_HealthState ¶
func New_HealthState(value HealthState_Value) HealthState
func (HealthState) IsUnknown ¶
func (e HealthState) IsUnknown() bool
IsUnknown returns false for all known variants of HealthState and true otherwise.
func (HealthState) MarshalText ¶
func (e HealthState) MarshalText() ([]byte, error)
func (HealthState) String ¶
func (e HealthState) String() string
func (*HealthState) UnmarshalText ¶
func (e *HealthState) UnmarshalText(data []byte) error
func (HealthState) Value ¶
func (e HealthState) Value() HealthState_Value
type HealthState_Value ¶
type HealthState_Value string
const ( // The service node is fully operational with no issues. HealthState_HEALTHY HealthState_Value = "HEALTHY" // The service node is fully operational with no issues; however, it is requesting to defer shutdown or restart. A deferring node should not accept "new" jobs but should allow polling of existing jobs. HealthState_DEFERRING HealthState_Value = "DEFERRING" // The service node is no longer serving requests and is ready to be shut down. Nodes in a deferring state are expected to change to a suspended state once they have completed any pending work. A suspended node must also indicate in its readiness probe that it should not receive incoming requests. HealthState_SUSPENDED HealthState_Value = "SUSPENDED" // The service node is operating in a degraded state, but is capable of automatically recovering. If any of the nodes in the service were to be restarted, it may result in correctness or consistency issues with the service. Ex: When a cassandra node decides it is not up-to-date and needs to repair, the node is operating in a degraded state. Restarting the node prior to the repair being complete might result in the service being unable to correctly respond to requests. HealthState_REPAIRING HealthState_Value = "REPAIRING" // The service node is in a state that is trending towards an error. If no corrective action is taken, the health is expected to become an error. HealthState_WARNING HealthState_Value = "WARNING" // The service node is operationally unhealthy. HealthState_ERROR HealthState_Value = "ERROR" // The service node has entered an unrecoverable state. All nodes of the service should be stopped and no automated attempt to restart the node should be made. Ex: a service fails to migrate to a new schema and is left in an unrecoverable state. HealthState_TERMINAL HealthState_Value = "TERMINAL" HealthState_UNKNOWN HealthState_Value = "UNKNOWN" )
func HealthState_Values ¶
func HealthState_Values() []HealthState_Value
HealthState_Values returns all known variants of HealthState.
type HealthStatus ¶
type HealthStatus struct {
Checks map[CheckType]HealthCheckResult `json:"checks"`
}
func (HealthStatus) MarshalJSON ¶
func (o HealthStatus) MarshalJSON() ([]byte, error)
func (HealthStatus) MarshalYAML ¶
func (o HealthStatus) MarshalYAML() (interface{}, error)
func (*HealthStatus) UnmarshalJSON ¶
func (o *HealthStatus) UnmarshalJSON(data []byte) error
func (*HealthStatus) UnmarshalYAML ¶
func (o *HealthStatus) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.