Class CircuitBreakerMetricNames


  • public class CircuitBreakerMetricNames
    extends java.lang.Object
    • Field Detail

      • 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 Detail

      • CircuitBreakerMetricNames

        protected CircuitBreakerMetricNames()
    • Method Detail

      • custom

        public static CircuitBreakerMetricNames.Builder 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.
      • 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.