(circuit-breaker-info)
(circuit-breaker-info circuit-breaker-name)
It returns a map with information regarding one circuit breaker (if a name is specified) or all of them. the structure contains the status, some counters, and sampled responses.
It returns a map with information regarding one circuit breaker (if a name is specified) or all of them. the structure contains the status, some counters, and sampled responses.
(counters-totals counters last-n-seconds)
Takes in input a map of counters as defined in the cb-state, and the number of seconds to take into consideration and it returns the total of each metric for the given time range.
Takes in input a map of counters as defined in the cb-state, and the number of seconds to take into consideration and it returns the total of each metric for the given time range.
This function takes a circuit-breaker state value and depending
of :circuit-breaker-strategy
in the :config
it select a
different evaluation strategy to determine whether the circuit
breaker should be closed (true
) or open (false
)
This function takes a circuit-breaker state value and depending of `:circuit-breaker-strategy` in the `:config` it select a different evaluation strategy to determine whether the circuit breaker should be closed (`true`) or open (`false`)
(execute-with-circuit-breaker f
{:keys [circuit-breaker timeout cancel-on-timeout]
:as options})
Execute a thunk f
in a circuit-breaker pool
Execute a thunk `f` in a circuit-breaker pool
Returns the current system clock time as number of seconds or milliseconds from EPOCH.
Returns the current system clock time as number of seconds or milliseconds from EPOCH.
(shutdown-pools)
(shutdown-pools pool-name)
It shuts down, forcefully, all the circuit-breaker active pools.
If you provide a pool-name
it will shutdown only the specified one.
It shuts down, forcefully, all the circuit-breaker active pools. If you provide a `pool-name` it will shutdown only the specified one.
(sum-counters)
(sum-counters c1)
(sum-counters {s1 :success e1 :error t1 :timeout r1 :rejected o1 :open}
{s2 :success e2 :error t2 :timeout r2 :rejected o2 :open})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close