net.pincette.netty.http.Metrics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pincette-netty-http Show documentation
Show all versions of pincette-netty-http Show documentation
A simple Netty HTTP server and client
package net.pincette.netty.http;
import java.time.Duration;
import java.time.Instant;
/**
* The metrics for one request.
*
* @param path the path of the URI.
* @param method the HTTP method.
* @param protocol the HTTP protocol version.
* @param username the username, which can be null
.
* @param from the value of the From HTTP header.
* @param statusCode the status code of the response.
* @param requestBytes the number of bytes in the request body.
* @param responseBytes the number of bytes in the response body.
* @param timeOccurred the moment the request arrived.
* @param timeTaken the time the request took.
* @author Werner Donné
* @since 3.1
*/
public record Metrics(
String path,
String method,
String protocol,
String username,
String from,
int statusCode,
long requestBytes,
long responseBytes,
Instant timeOccurred,
Duration timeTaken) {}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy