Class CircuitBreakerMetricNames
java.lang.Object
io.github.resilience4j.micrometer.tagged.CircuitBreakerMetricNames
public class CircuitBreakerMetricNames
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCircuitBreakerMetricNames.BuilderHelps building custom instance ofCircuitBreakerMetricNames. -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_CIRCUIT_BREAKER_BUFFERED_CALLSstatic java.lang.StringDEFAULT_CIRCUIT_BREAKER_CALLSstatic java.lang.StringDEFAULT_CIRCUIT_BREAKER_FAILURE_RATEstatic java.lang.StringDEFAULT_CIRCUIT_BREAKER_NOT_PERMITTED_CALLSstatic java.lang.StringDEFAULT_CIRCUIT_BREAKER_SLOW_CALL_RATEstatic java.lang.StringDEFAULT_CIRCUIT_BREAKER_SLOW_CALLSstatic java.lang.StringDEFAULT_CIRCUIT_BREAKER_STATE -
Constructor Summary
Constructors Modifier Constructor Description protectedCircuitBreakerMetricNames() -
Method Summary
Modifier and Type Method Description static CircuitBreakerMetricNames.Buildercustom()Returns a builder for creating custom metric names.java.lang.StringgetBufferedCallsMetricName()Returns the metric name for currently buffered calls, defaults to "resilience4j.circuitbreaker.buffered.calls".java.lang.StringgetCallsMetricName()Returns the metric name for circuit breaker calls, defaults to "resilience4j.circuitbreaker.calls".java.lang.StringgetFailureRateMetricName()Returns the metric name for failure rate, defaults to "resilience4j.circuitbreaker.failure.rate".java.lang.StringgetNotPermittedCallsMetricName()Returns the metric name for circuit breaker not permitted calls, defaults to "resilience4j.circuitbreaker.not.permitted.calls".java.lang.StringgetSlowCallRateMetricName()Returns the metric name for slow call rate, defaults to "resilience4j.circuitbreaker.slow.call.rate".java.lang.StringgetSlowCallsMetricName()Returns the metric name for currently slow calls, defaults to "resilience4j.circuitbreaker.slow.calls".java.lang.StringgetStateMetricName()Returns the metric name for state, defaults to "resilience4j.circuitbreaker.state".static CircuitBreakerMetricNamesofDefaults()Returns default metric names.
-
Field Details
-
DEFAULT_CIRCUIT_BREAKER_CALLS
public static final java.lang.String DEFAULT_CIRCUIT_BREAKER_CALLS- See Also:
- Constant Field Values
-
DEFAULT_CIRCUIT_BREAKER_NOT_PERMITTED_CALLS
public static final java.lang.String DEFAULT_CIRCUIT_BREAKER_NOT_PERMITTED_CALLS- See Also:
- Constant Field Values
-
DEFAULT_CIRCUIT_BREAKER_STATE
public static final java.lang.String DEFAULT_CIRCUIT_BREAKER_STATE- See Also:
- Constant Field Values
-
DEFAULT_CIRCUIT_BREAKER_BUFFERED_CALLS
public static final java.lang.String DEFAULT_CIRCUIT_BREAKER_BUFFERED_CALLS- See Also:
- Constant Field Values
-
DEFAULT_CIRCUIT_BREAKER_SLOW_CALLS
public static final java.lang.String DEFAULT_CIRCUIT_BREAKER_SLOW_CALLS- See Also:
- Constant Field Values
-
DEFAULT_CIRCUIT_BREAKER_FAILURE_RATE
public static final java.lang.String DEFAULT_CIRCUIT_BREAKER_FAILURE_RATE- See Also:
- Constant Field Values
-
DEFAULT_CIRCUIT_BREAKER_SLOW_CALL_RATE
public static final java.lang.String DEFAULT_CIRCUIT_BREAKER_SLOW_CALL_RATE- See Also:
- Constant Field Values
-
-
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
public java.lang.String getCallsMetricName()Returns the metric name for circuit breaker calls, defaults to "resilience4j.circuitbreaker.calls".- Returns:
- The circuit breaker calls metric name.
-
getNotPermittedCallsMetricName
public java.lang.String 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
public java.lang.String getBufferedCallsMetricName()Returns the metric name for currently buffered calls, defaults to "resilience4j.circuitbreaker.buffered.calls".- Returns:
- The buffered calls metric name.
-
getSlowCallsMetricName
public java.lang.String getSlowCallsMetricName()Returns the metric name for currently slow calls, defaults to "resilience4j.circuitbreaker.slow.calls".- Returns:
- The slow calls metric name.
-
getStateMetricName
public java.lang.String getStateMetricName()Returns the metric name for state, defaults to "resilience4j.circuitbreaker.state".- Returns:
- The state metric name.
-
getFailureRateMetricName
public java.lang.String getFailureRateMetricName()Returns the metric name for failure rate, defaults to "resilience4j.circuitbreaker.failure.rate".- Returns:
- The failure rate metric name.
-
getSlowCallRateMetricName
public java.lang.String getSlowCallRateMetricName()Returns the metric name for slow call rate, defaults to "resilience4j.circuitbreaker.slow.call.rate".- Returns:
- The failure rate metric name.
-