Files
contracts/observability/level.go
T

16 lines
590 B
Go
Raw Normal View History

package observability
// Level classifies the criticality of a component to the overall application health.
// The zero value is LevelCritical — a safe default that treats unknown components
// as essential.
type Level int
const (
// LevelCritical marks a component essential for application function.
// A failing critical component sets the overall health status to DOWN (HTTP 503).
LevelCritical Level = iota
// LevelDegraded marks a component that is important but not essential.
// A failing degraded component sets the overall status to DEGRADED (HTTP 200).
LevelDegraded
)