Class CircuitBreakerHystrixServerSideEvent
- java.lang.Object
-
- io.github.resilience4j.circuitbreaker.monitoring.endpoint.CircuitBreakerHystrixServerSideEvent
-
@Endpoint(id="hystrixstreamcircuitbreakerevents") public class CircuitBreakerHystrixServerSideEvent extends java.lang.ObjectThis class is used to produce Circuit breaker events as streams in hystrix like fashionThe following endpoints are automatically generated and events are produced as Server Sent Event(SSE) curl -vv http://localhost:8090/actuator/hystrixstreamcircuitbreakerevents curl -vv http://localhost:8090/actuator/hystrixstreamcircuitbreakerevents/{circuitbreakername} curl -vv http://localhost:8090/actuator/hystrixstreamcircuitbreakerevents/{circuitbreakername}/{errorType}
Note: This SSE data can be easily mapped to hystrix compatible data format (specific K V pairs) and be used in Turbine or hystrix dashboard or vizceral.
This is created as a bridge to support the legacy hystrix eco system of monitoring tools especially for those that are migrating from hystrix to resilence4j to continue to use hystrix eco tools.
-
-
Constructor Summary
Constructors Constructor Description CircuitBreakerHystrixServerSideEvent(io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry circuitBreakerRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<java.lang.String>>getAllCircuitBreakerHystrixStreamEvents()reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<java.lang.String>>getHystrixStreamEventsFilteredByCircuitBreakerName(java.lang.String name)reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<java.lang.String>>getHystrixStreamEventsFilteredByCircuitBreakerNameAndEventType(java.lang.String name, java.lang.String eventType)
-
-
-
Method Detail
-
getAllCircuitBreakerHystrixStreamEvents
@ReadOperation(produces="text/event-stream") public reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<java.lang.String>> getAllCircuitBreakerHystrixStreamEvents()
-
getHystrixStreamEventsFilteredByCircuitBreakerName
@ReadOperation(produces="text/event-stream") public reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<java.lang.String>> getHystrixStreamEventsFilteredByCircuitBreakerName(@Selector java.lang.String name)
-
getHystrixStreamEventsFilteredByCircuitBreakerNameAndEventType
@ReadOperation(produces="text/event-stream") public reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<java.lang.String>> getHystrixStreamEventsFilteredByCircuitBreakerNameAndEventType(@Selector java.lang.String name, @Selector java.lang.String eventType)
-
-