bolshakov / stoplight

:traffic_light: Traffic control for code.
http://bolshakov.github.io/stoplight/
MIT License
384 stars 40 forks source link

Threshold in percent #104

Closed luizkowalski closed 8 years ago

luizkowalski commented 8 years ago

According to the docs, seems like the threshold is based in failed API calls in sequence (e.g. a 3 threshold will trips the circuit after the third call fails). At least is what I understood. Is it possible to open the circuit after a certain % of calls failed?

tfausak commented 8 years ago

This has been requested before. See #86 and #45. If you need this right now, use Circuitbox.

luizkowalski commented 8 years ago

Cool, thanks! Also, is there any way to trip the circuit if my API call is slow?

edit: nevermind, I can do that on faraday