Classes
Events
-
batch
-
Batch event. The keys of the object are the names of the circuit breakers.
The values of the object are arrays ofCircuitBreaker#event:interval.Type:
- object
- Source:
-
callback
-
Callback event. Emitted on calls which do not timeout.
Type:
- object
- Source:
Properties:
Name Type Description argsarray Array or arguments in exec() call
startinteger Timestamp of the start of the call
endinteger Timestamp of the end of the call
resultarray Array of arguments with which callback was called
-
interval
-
Interval event
Type:
- object
- Source:
Properties:
Name Type Description startinteger Timestamp of start of the interval
endinteger Timestamp of the end of the interval
statestring Circuit's current state
activeinteger Calls currently running
queuedinteger Calls currently queued
totalinteger Total calls
successinteger Total success calls
totalErrorsinteger Total failed calls
errorsobject Error counts by type
Properties
Name Type Description TimeoutErrorinteger Total calls which timedout - if any
OpenCircuitErrorinteger Total calls which were rejected (short-circuit) - if any
timesarray Times of successful calls in milliseconds
-
callback
-
Callback event. Emitted on calls which do not timeout.
Type:
- object
- Inherited From:
- Source:
Properties:
Name Type Description argsarray Array or arguments in exec() call
startinteger Timestamp of the start of the call
endinteger Timestamp of the end of the call
resultarray Array of arguments with which callback was called
-
interval
-
Interval event
Type:
- object
- Inherited From:
- Source:
Properties:
Name Type Description startinteger Timestamp of start of the interval
endinteger Timestamp of the end of the interval
statestring Circuit's current state
activeinteger Calls currently running
queuedinteger Calls currently queued
totalinteger Total calls
successinteger Total success calls
totalErrorsinteger Total failed calls
errorsobject Error counts by type
Properties
Name Type Description TimeoutErrorinteger Total calls which timedout - if any
OpenCircuitErrorinteger Total calls which were rejected (short-circuit) - if any
timesarray Times of successful calls in milliseconds