OptionalfailureThreshold?: numberPercentage (from 0 to 1) failures before going from closed -> open.
OptionalminimumRps?: numberThe minimum number of calls per seconds to go from closed -> open, half-opened -> closed or half-opened -> open.
OptionalsampleTimeSpan?: ITimeSpanLength of time over which to sample.
OptionalsuccessThreshold?: numberPercentage (from 0 to 1) successes before going from half-open -> closed.
OptionaltimeSpan?: ITimeSpanLength of time over which to sample.
IMPORT_PATH:
"@daiso-tech/core/circuit-breaker/policies"