Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FallbackStats ¶
type FallbackStats = rolling.FallbackStats
FallbackStats tracks fallback metrics in rolling buckets
func FindFallbackMetrics ¶
func FindFallbackMetrics(c *circuit.Circuit) *FallbackStats
FindFallbackMetrics searches a circuit for the previously stored fallback stats. Returns nil if never set.
type FallbackStatsConfig ¶
type FallbackStatsConfig = rolling.FallbackStatsConfig
FallbackStatsConfig configures how to track fallback stats
type RunStats ¶
RunStats tracks rolling windows of callback counts
func FindCommandMetrics ¶
func FindCommandMetrics(c *circuit.Circuit) *RunStats
FindCommandMetrics searches a circuit for the previously stored run stats. Returns nil if never set.
type RunStatsConfig ¶
type RunStatsConfig = rolling.RunStatsConfig
RunStatsConfig configures a RunStats
type StatFactory ¶
type StatFactory = rolling.StatFactory
StatFactory helps the process of making stat collectors for circuit breakers
Click to show internal directories.
Click to hide internal directories.