OptionalfailureThreshold?: numberPercentage (from 0 to 1) failures before going from closed -> open.
OptionalminimumNumberOfCalls?: numberThe minimum number of calls to go from closed -> open, half-opened -> closed or half-opened -> open.
Optionalsize?: numberSize of the count based sliding window.
OptionalsuccessThreshold?: numberPercentage (from 0 to 1) successes before going from half-open -> closed.
IMPORT_PATH:
"@daiso-tech/core/circuit-breaker/policies"