CircuitBreakerPolicyResponse

data class CircuitBreakerPolicyResponse(val consecutiveErrors: Int? = null, val intervalInSeconds: Int? = null, val maxEjectionPercent: Int? = null)

Policy that defines circuit breaker conditions

Constructors

Link copied to clipboard
constructor(consecutiveErrors: Int? = null, intervalInSeconds: Int? = null, maxEjectionPercent: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val consecutiveErrors: Int? = null

Number of consecutive errors before the circuit breaker opens

Link copied to clipboard
val intervalInSeconds: Int? = null

The time interval, in seconds, between endpoint checks. This can result in opening the circuit breaker if the check fails as well as closing the circuit breaker if the check succeeds. Defaults to 10s.

Link copied to clipboard
val maxEjectionPercent: Int? = null

Maximum percentage of hosts that will be ejected after failure threshold has been met