Documentation
¶
Overview ¶
Package health provides an extended health status graph for Runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder assembles a Report.
type Node ¶
type Node struct {
Name string `json:"name"`
Status Status `json:"status"`
Message string `json:"message,omitempty"`
Attrs map[string]string `json:"attrs,omitempty"`
}
Node is one node in the health graph.
type Report ¶
type Report struct {
Time time.Time `json:"time"`
Overall Status `json:"overall"`
Nodes []Node `json:"nodes"`
Edges []Edge `json:"edges,omitempty"`
}
Report is a graph-oriented health snapshot.
func (Report) Dependents ¶ added in v0.9.0
Dependents returns every node transitively affected when name becomes unavailable. Because Edge.From depends on Edge.To, the traversal follows reverse edges.
func (Report) Validate ¶ added in v0.9.0
func (r Report) Validate() []ValidationIssue
Validate checks node identity, dependency endpoints, self-dependencies, and cycles.
type ValidationIssue ¶ added in v0.9.0
type ValidationIssue struct {
Code string `json:"code"`
Node string `json:"node,omitempty"`
Message string `json:"message"`
}
ValidationIssue describes a structural problem in a health report.
Click to show internal directories.
Click to hide internal directories.