CircuitBreakerPolicyArgs

data class CircuitBreakerPolicyArgs(val consecutiveErrors: Output<Int>? = null, val intervalInSeconds: Output<Int>? = null, val maxEjectionPercent: Output<Int>? = null) : ConvertibleToJava<CircuitBreakerPolicyArgs>

Policy that defines circuit breaker conditions

Constructors

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

Properties

Link copied to clipboard
val consecutiveErrors: Output<Int>? = null

Number of consecutive errors before the circuit breaker opens

Link copied to clipboard
val intervalInSeconds: Output<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: Output<Int>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): CircuitBreakerPolicyArgs