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
-
Constructor Summary
ConstructorDescriptionOperationStats
(long requests, Map<Integer, Long> responsesByCode, long exceptions, long inflight, long averageLatencyMillis, long minLatencyMillis, long maxLatencyMillis, long bytesSent, long bytesReceived) -
Method Summary
Modifier and TypeMethodDescriptionlong
Average request-response latency, or -1.long
Number of bytes received in HTTP responses.long
Number of bytes sent, for HTTP requests with a response.boolean
long
Number of exceptions (instead of responses).int
hashCode()
long
inflight()
Number of attempted requests which haven't yielded a response or exception yet.long
Maximum request-response latency, or -1.long
Minimum request-response latency, or -1.long
requests()
Number of HTTP requests attempted.long
Number of HTTP responses received.Number of HTTP responses by status code.since
(OperationStats initial) Returns the difference between this and the initial.long
Number of 200 OK HTTP responses received.toString()
-
Constructor Details
-
OperationStats
-
-
Method Details
-
since
Returns the difference between this and the initial. Min and max latency are not modified. -
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. -
responsesByCode
Number of HTTP responses by status 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. -
equals
-
hashCode
public int hashCode() -
toString
-