Package com.ngrok.definitions
Class EndpointCircuitBreaker
java.lang.Object
com.ngrok.definitions.EndpointCircuitBreaker
A class encapsulating the
EndpointCircuitBreaker
resource.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
true
if the module will be applied to traffic,false
to disable.double
Error threshold percentage should be between 0 - 1.0, not 0-100.0long
Integer number of buckets into which metrics are retained.long
Integer 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 healthlong
Integer number of requests in a rolling window that will trip the circuit.int
hashCode()
Creates a new builder for theEndpointCircuitBreaker
type.toString()
-
Method Details
-
newBuilder
Creates a new builder for theEndpointCircuitBreaker
type.- Returns:
- a new
EndpointCircuitBreaker.Builder
-
getEnabled
true
if the module will be applied to traffic,false
to disable. defaulttrue
if unspecified- Returns:
- the value of the property as a
boolean
wrapped 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
-