Class CircuitBreakerMetricNames
java.lang.Object
io.github.resilience4j.micrometer.tagged.CircuitBreakerMetricNames
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHelps building custom instance ofCircuitBreakerMetricNames. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncustom()Returns a builder for creating custom metric names.Returns the metric name for currently buffered calls, defaults to "resilience4j.circuitbreaker.buffered.calls".Returns the metric name for circuit breaker calls, defaults to "resilience4j.circuitbreaker.calls".Returns the metric name for failure rate, defaults to "resilience4j.circuitbreaker.failure.rate".Returns the metric name for circuit breaker not permitted calls, defaults to "resilience4j.circuitbreaker.not.permitted.calls".Returns the metric name for slow call rate, defaults to "resilience4j.circuitbreaker.slow.call.rate".Returns the metric name for currently slow calls, defaults to "resilience4j.circuitbreaker.slow.calls".Returns the metric name for state, defaults to "resilience4j.circuitbreaker.state".static CircuitBreakerMetricNamesReturns default metric names.
-
Field Details
-
DEFAULT_CIRCUIT_BREAKER_CALLS
- See Also:
-
DEFAULT_CIRCUIT_BREAKER_NOT_PERMITTED_CALLS
- See Also:
-
DEFAULT_CIRCUIT_BREAKER_STATE
- See Also:
-
DEFAULT_CIRCUIT_BREAKER_BUFFERED_CALLS
- See Also:
-
DEFAULT_CIRCUIT_BREAKER_SLOW_CALLS
- See Also:
-
DEFAULT_CIRCUIT_BREAKER_FAILURE_RATE
- See Also:
-
DEFAULT_CIRCUIT_BREAKER_SLOW_CALL_RATE
- See Also:
-
-
Constructor Details
-
CircuitBreakerMetricNames
protected CircuitBreakerMetricNames()
-
-
Method Details
-
custom
Returns a builder for creating custom metric names. Note that names have default values, so only desired metrics can be renamed.- Returns:
- The builder.
-
ofDefaults
Returns default metric names.- Returns:
- The default
CircuitBreakerMetricNamesinstance.
-
getCallsMetricName
Returns the metric name for circuit breaker calls, defaults to "resilience4j.circuitbreaker.calls".- Returns:
- The circuit breaker calls metric name.
-
getNotPermittedCallsMetricName
Returns the metric name for circuit breaker not permitted calls, defaults to "resilience4j.circuitbreaker.not.permitted.calls".- Returns:
- The circuit breaker not permitted calls metric name.
-
getBufferedCallsMetricName
Returns the metric name for currently buffered calls, defaults to "resilience4j.circuitbreaker.buffered.calls".- Returns:
- The buffered calls metric name.
-
getSlowCallsMetricName
Returns the metric name for currently slow calls, defaults to "resilience4j.circuitbreaker.slow.calls".- Returns:
- The slow calls metric name.
-
getStateMetricName
Returns the metric name for state, defaults to "resilience4j.circuitbreaker.state".- Returns:
- The state metric name.
-
getFailureRateMetricName
Returns the metric name for failure rate, defaults to "resilience4j.circuitbreaker.failure.rate".- Returns:
- The failure rate metric name.
-
getSlowCallRateMetricName
Returns the metric name for slow call rate, defaults to "resilience4j.circuitbreaker.slow.call.rate".- Returns:
- The failure rate metric name.
-