Record: CircuitBreakerConfig

Provides a set of configurations for controlling the behaviour of the Circuit Breaker.

Closed record

Fields

  • rollingWindow RollingWindow(default {})
  • The http:RollingWindow options of the CircuitBreaker

  • failureThreshold float(default 0.0)
  • The threshold for request failures. When this threshold exceeds, the circuit trips The threshold should be a value between 0 and 1

  • resetTime decimal(default 0)
  • The time period (in seconds) to wait before attempting to make another request to the upstream service

  • statusCodes int[ ](default [])
  • Array of HTTP response status codes which are considered as failures