Package com.ngrok.definitions
Class EndpointCircuitBreaker
java.lang.Object
com.ngrok.definitions.EndpointCircuitBreaker
A class encapsulating the
EndpointCircuitBreaker resource.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleantrueif the module will be applied to traffic,falseto disable.doubleError threshold percentage should be between 0 - 1.0, not 0-100.0longInteger number of buckets into which metrics are retained.longInteger number of seconds in the statistical rolling window that metrics are retained for.Integer number of seconds after which the circuit is tripped to wait before re-evaluating upstream healthlongInteger number of requests in a rolling window that will trip the circuit.inthashCode()Creates a new builder for theEndpointCircuitBreakertype.toString()
-
Method Details
-
newBuilder
Creates a new builder for theEndpointCircuitBreakertype.- Returns:
- a new
EndpointCircuitBreaker.Builder
-
getEnabled
trueif the module will be applied to traffic,falseto disable. defaulttrueif unspecified- Returns:
- the value of the property as a
booleanwrapped in anOptional
-
getTrippedDuration
Integer number of seconds after which the circuit is tripped to wait before re-evaluating upstream health- Returns:
- the value of the property as a
Duration
-
getRollingWindow
public long getRollingWindow()Integer number of seconds in the statistical rolling window that metrics are retained for.- Returns:
- the value of the property as a
long
-
getNumBuckets
public long getNumBuckets()Integer number of buckets into which metrics are retained. Max 128.- Returns:
- the value of the property as a
long
-
getVolumeThreshold
public long getVolumeThreshold()Integer number of requests in a rolling window that will trip the circuit. Helpful if traffic volume is low.- Returns:
- the value of the property as a
long
-
getErrorThresholdPercentage
public double getErrorThresholdPercentage()Error threshold percentage should be between 0 - 1.0, not 0-100.0- Returns:
- the value of the property as a
double
-
equals
-
hashCode
public int hashCode() -
toString
-