diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-11-20 14:14:02 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-11-20 15:12:06 +0100 |
commit | 563b202b18b15464ce8246b55cd74c4a9b1a5144 (patch) | |
tree | f73468aa5a9897e00b63a74615591e8e88665915 | |
parent | e8c0a04b67b632ea3f98327d8f39cd0293ad8581 (diff) |
Document fields
-rw-r--r-- | client/go/internal/vespa/document/stats.go | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/client/go/internal/vespa/document/stats.go b/client/go/internal/vespa/document/stats.go index 82630b4af1c..09243f02548 100644 --- a/client/go/internal/vespa/document/stats.go +++ b/client/go/internal/vespa/document/stats.go @@ -40,16 +40,27 @@ func (r Result) Success() bool { // Stats represents feeding operation statistics. type Stats struct { + // Number of responses received, grouped by the HTTP status code. Requests that do not receive a response (i.e. no + // status code) are not counted. ResponsesByCode map[int]int64 - Requests int64 - Responses int64 - Errors int64 - Inflight int64 - TotalLatency time.Duration - MinLatency time.Duration - MaxLatency time.Duration - BytesSent int64 - BytesRecv int64 + // Number of requests made, including retries. + Requests int64 + // Number of responses received. + Responses int64 + // Number of transport layer errors. + Errors int64 + // Number of requests currently in-flight. + Inflight int64 + // Sum of response latency + TotalLatency time.Duration + // Lowest recorded response latency + MinLatency time.Duration + // Highest recorded response latency + MaxLatency time.Duration + // Total bytes sent + BytesSent int64 + // Total bytes received + BytesRecv int64 } // AvgLatency returns the average latency for a request. |