public class HystrixMetricsEventStreamHandler extends Object implements Handler
This handler should be bound to an application path, and most likely only for the GET method…
import ratpack.hystrix.HystrixMetricsEventStreamHandler; chain instanceof ratpack.handling.Chain; chain.get("admin/hystrix.stream", new HystrixMetricsEventStreamHandler());
This handler can be used in conjunction with Server Sent Event based clients such as the Hystrix Dashboard and Turbine to consume the metrics being reported by your application in realtime.
ServerSentEvents
Constructor and Description |
---|
HystrixMetricsEventStreamHandler() |
public void handle(Context context) throws Exception
Handler
handle
in interface Handler
context
- The context to handleException
- if anything goes wrong (exception will be implicitly passed to the context's Context.error(Throwable)
method)