Versions in this module Expand all Collapse all v0 v0.1.0 Mar 25, 2026 Changes in this version + var DefaultThresholds = Thresholds + type Analyzer struct + func NewAnalyzer(opts ...Option) *Analyzer + func (a *Analyzer) SetDrum(name string) + func (a *Analyzer) Step(observations []StageObservation) Diagnosis + type Diagnosis struct + Confidence float64 + Constraint string + Stages []StageDiagnosis + StarvationCount int + type ObservationMask uint32 + const HasBlocked + const HasCompleted + const HasFailed + const HasIdle + const HasQueue + type Option func(*Analyzer) + func WithDrum(name string) Option + func WithThresholds(t Thresholds) Option + type StageDiagnosis struct + Arrivals int64 + BlockedRatio float64 + Completions int64 + ErrorRate float64 + Failures int64 + HasBlockedRatio bool + HasIdleRatio bool + IdleRatio float64 + QueueGrowth int64 + Stage string + State StageState + Utilization float64 + type StageObservation struct + Arrivals int64 + BlockedWork Work + BusyWork Work + CapacityWork Work + Completions int64 + Failures int64 + IdleWork Work + Mask ObservationMask + QueueDepth int64 + Stage string + Workers int32 + type StageState int + const StateBlocked + const StateBroken + const StateHealthy + const StateSaturated + const StateStarved + const StateUnknown + func (s StageState) String() string + type Thresholds struct + BlockedBlocked float64 + BrokenError float64 + ConfidenceMin int64 + HysteresisWindows int + SaturatedBlock float64 + SaturatedBusy float64 + SaturatedIdle float64 + StarvedIdle float64 + type Work uint64