Package org.attribyte.api.http
Class Stats
java.lang.Object
org.attribyte.api.http.Timing
org.attribyte.api.http.Stats
Extended request/response statistics including header and body size metrics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longThe size of the request body.final intThe number of chunks in the request body.final intThe number of request headers.final longThe size (in bytes) of the request headers.final AtomicLongThe size of the response body.final AtomicIntegerThe number of chunks in the response.final intThe number of response headers.final longThe size of the response headers.Fields inherited from class org.attribyte.api.http.Timing
timeToCompleteResponse, timeToFirstResponseContent, timeToFirstResponseHeader, timeToLastResponseHeader, timeToRequestComplete, timeToRequestStart, timeToResponseStatus -
Constructor Summary
ConstructorsConstructorDescriptionStats(long timeToRequestStart, long timeToRequestComplete, long timeToResponseStatus, long timeToFirstResponseHeader, long timeToLastResponseHeader, long timeToFirstResponseContent, long timeToCompleteResponse, int requestHeaderCount, long requestHeaderSize, int requestChunkCount, long requestBodySize, int responseHeaderCount, long responseHeaderSize, AtomicInteger responseChunkCount, AtomicLong responseBodySize) Creates stats with all timing and size metrics. -
Method Summary
Methods inherited from class org.attribyte.api.http.Timing
timeToCompleteResponse, timeToFirstResponseContent, timeToFirstResponseHeader, timeToLastResponseHeader, timeToRequestComplete, timeToRequestStart, timeToResponseStatus
-
Field Details
-
requestHeaderCount
public final int requestHeaderCountThe number of request headers. -
requestHeaderSize
public final long requestHeaderSizeThe size (in bytes) of the request headers. -
requestChunkCount
public final int requestChunkCountThe number of chunks in the request body. -
requestBodySize
public final long requestBodySizeThe size of the request body. -
responseHeaderCount
public final int responseHeaderCountThe number of response headers. -
responseHeaderSize
public final long responseHeaderSizeThe size of the response headers. -
responseChunkCount
The number of chunks in the response. -
responseBodySize
The size of the response body.
-
-
Constructor Details
-
Stats
public Stats(long timeToRequestStart, long timeToRequestComplete, long timeToResponseStatus, long timeToFirstResponseHeader, long timeToLastResponseHeader, long timeToFirstResponseContent, long timeToCompleteResponse, int requestHeaderCount, long requestHeaderSize, int requestChunkCount, long requestBodySize, int responseHeaderCount, long responseHeaderSize, AtomicInteger responseChunkCount, AtomicLong responseBodySize) Creates stats with all timing and size metrics.- Parameters:
timeToRequestStart- Time to start the request (nanoseconds).timeToRequestComplete- Time to complete sending the request (nanoseconds).timeToResponseStatus- Time to receive the response status (nanoseconds).timeToFirstResponseHeader- Time to receive the first response header (nanoseconds).timeToLastResponseHeader- Time to receive the last response header (nanoseconds).timeToFirstResponseContent- Time to receive the first response content (nanoseconds).timeToCompleteResponse- Time to complete the response (nanoseconds).requestHeaderCount- The number of request headers.requestHeaderSize- The size of request headers in bytes.requestChunkCount- The number of request body chunks.requestBodySize- The size of the request body in bytes.responseHeaderCount- The number of response headers.responseHeaderSize- The size of response headers in bytes.responseChunkCount- The number of response body chunks.responseBodySize- The size of the response body in bytes.
-
-
Method Details