Versions in this module Expand all Collapse all v0 v0.11.2 Aug 12, 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 ConstraintSource int + const ConstraintSourceInferred + const ConstraintSourceManualOverride + const ConstraintSourceUnspecified + func (s ConstraintSource) String() string + type ConstraintState int + const ConstraintAmbiguous + const ConstraintEmerging + const ConstraintIdentified + const ConstraintUnconstrained + const ConstraintUnknown + const ConstraintUnspecified + func (s ConstraintState) String() string + type Diagnosis struct + CandidateConstraint string + Constraint string + ConstraintSource ConstraintSource + ConstraintState ConstraintState + Stages []StageDiagnosis + StarvationCount int + SupportFreshness float64 + UnsupportedCount int + func (d Diagnosis) Valid() bool + 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 + DemotionWindows int + HysteresisWindows int + SaturatedBlock float64 + SaturatedBusy float64 + SaturatedIdle float64 + StarvedIdle float64 + type Work uint64