Package ai.vespa.feed.client
Class OperationStats
java.lang.Object
ai.vespa.feed.client.OperationStats
Statistics for feed operations over HTTP against a Vespa cluster.
- Author:
- jonmv, bjorncs
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOperationStats(double duration, long requests, long exceptions, long inflight, long targetInFlight, long bytesSent, long averageLatencyMillis, long minLatencyMillis, long maxLatencyMillis, Map<Integer, OperationStats.Response> statsByCode) -
Method Summary
Modifier and TypeMethodDescriptionlongAverage request-response latency, or -1.longNumber of bytes received in HTTP responses.longNumber of bytes sent, for HTTP requests with a response.duration()longNumber of exceptions (instead of responses).longinflight()Number of attempted requests which haven't yielded a response or exception yet.longMaximum request-response latency, or -1.longMinimum request-response latency, or -1.longOperation latency is the time from the initial HTTP request is sent until the operation was successfully completed as observed by the client.longlonglongrequests()Number of HTTP requests attempted.response(int code) Statistics for the given code.longNumber of HTTP responses received.Statistics per response code.longNumber of 200 OK HTTP responses received.toString()
-
Constructor Details
-
OperationStats
public OperationStats(double duration, long requests, long exceptions, long inflight, long targetInFlight, long bytesSent, long averageLatencyMillis, long minLatencyMillis, long maxLatencyMillis, Map<Integer, OperationStats.Response> statsByCode)
-
-
Method Details
-
requests
public long requests()Number of HTTP requests attempted. -
responses
public long responses()Number of HTTP responses received. -
successes
public long successes()Number of 200 OK HTTP responses received. -
statsByCode
Statistics per response code. -
duration
-
response
Statistics for the given code. -
exceptions
public long exceptions()Number of exceptions (instead of responses). -
inflight
public long inflight()Number of attempted requests which haven't yielded a response or exception yet. -
averageLatencyMillis
public long averageLatencyMillis()Average request-response latency, or -1. -
minLatencyMillis
public long minLatencyMillis()Minimum request-response latency, or -1. -
maxLatencyMillis
public long maxLatencyMillis()Maximum request-response latency, or -1. -
bytesSent
public long bytesSent()Number of bytes sent, for HTTP requests with a response. -
bytesReceived
public long bytesReceived()Number of bytes received in HTTP responses. -
operationAverageLatencyMillis
public long operationAverageLatencyMillis()Operation latency is the time from the initial HTTP request is sent until the operation was successfully completed as observed by the client. Time spent on retrying the request will be included. Operations that eventually failed are not included.- Returns:
- average latency in milliseconds
-
operationMinLatencyMillis
public long operationMinLatencyMillis()- Returns:
- minimum latency as milliseconds
- See Also:
-
operationMaxLatencyMillis
public long operationMaxLatencyMillis()- Returns:
- max latency as milliseconds
- See Also:
-
toString
-