Class: CBObserver

CBObserver

new CBObserver()

An observer that watches one or more circuit breakers. It will
group their 'interval' event by name, and emit a single 'batch'
event with their combined data.

Source:
Fires:

Methods

unwatch(cb)

Stop watching this circuit breaker

Parameters:
Name Type Description
cb CircuitBreaker
Source:

watch(cb)

Watch a circuit breaker

Parameters:
Name Type Description
cb CircuitBreaker

The circuit breaker on which we'll listen the 'interval' event.

Source:

Events

batch

Batch event. The keys of the object are the names of the circuit breakers.
The values of the object are arrays of CircuitBreaker#event:interval.

Type:
  • object
Source: