Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
circuit_breaker
v0.0.6
CircuitBreaker
CircuitOpenException
CircuitState
ErrorWatcher
IllegalStateTransition
MoreErrorsThanExecutionsException
Built with Crystal 1.9.2
2023-10-08 08:55:24 UTC
class
ErrorWatcher
ErrorWatcher
Reference
Object
Defined in:
error_watcher.cr
Constructors
.new
(timeframe : Time::Span)
Instance Method Summary
#add_execution
#add_failure
#error_rate
: Float64
#reset
Constructor Detail
def self.
new
(timeframe : Time::Span)
#
[
View source
]
Instance Method Detail
def
add_execution
#
[
View source
]
def
add_failure
#
[
View source
]
def
error_rate
: Float64
#
[
View source
]
def
reset
#
[
View source
]