public interface HttpServerMetrics<R,W,S> extends TCPMetrics<S>
VertxMetrics
createMetrics
method that created and returned
this metrics object.
DISABLE_METRICS_PROPERTY_NAME, METRICS_ENABLED
Modifier and Type | Method and Description |
---|---|
default W |
connected(S socketMetric,
R requestMetric,
ServerWebSocket serverWebSocket)
Called when a server web socket connects.
|
default void |
disconnected(W serverWebSocketMetric)
Called when the server web socket has disconnected.
|
default R |
requestBegin(S socketMetric,
HttpRequest request)
Called when an http server request begins.
|
default void |
requestEnd(R requestMetric,
HttpRequest request,
long bytesRead)
Called when an http server request has ended.
|
default void |
requestReset(R requestMetric)
Called when the http server request couldn't complete successfully, for instance the connection
was closed before the response was sent.
|
default void |
requestRouted(R requestMetric,
String route)
Called when a routing layer indicates a request has been routed.
|
default void |
responseBegin(R requestMetric,
HttpResponse response)
Called when an http server response begins.
|
default void |
responseEnd(R requestMetric,
HttpResponse response,
long bytesWritten)
Called when an http server response has ended.
|
default R |
responsePushed(S socketMetric,
HttpMethod method,
String uri,
HttpResponse response)
Called when an http server response is pushed.
|
connected, disconnected
bytesRead, bytesWritten, exceptionOccurred
default R requestBegin(S socketMetric, HttpRequest request)
responseEnd(R, io.vertx.core.spi.observability.HttpResponse, long)
when the response has ended
or requestReset(R)
if the request/response has failed before.socketMetric
- the socket metricrequest
- the http server reuqestdefault void requestEnd(R requestMetric, HttpRequest request, long bytesRead)
requestMetric
- the request metricrequest
- the same HttpRequest
provided in the initial response callbackbytesRead
- the total number of bytes readdefault void requestReset(R requestMetric)
requestMetric
- the request metricdefault void responseBegin(R requestMetric, HttpResponse response)
requestMetric
- the request metricresponse
- the http server requestdefault R responsePushed(S socketMetric, HttpMethod method, String uri, HttpResponse response)
socketMetric
- the socket metricmethod
- the pushed response methoduri
- the pushed response uriresponse
- the http server response @return the request metricdefault void responseEnd(R requestMetric, HttpResponse response, long bytesWritten)
requestMetric
- the request metricresponse
- the same HttpResponse
provided in the initial response callbackbytesWritten
- the total number of bytes writtendefault W connected(S socketMetric, R requestMetric, ServerWebSocket serverWebSocket)
socketMetric
- the socket metricrequestMetric
- the request metricserverWebSocket
- the server web socketdefault void disconnected(W serverWebSocketMetric)
serverWebSocketMetric
- the server web socket metricCopyright © 2023 Eclipse. All rights reserved.