All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.pincette.netty.http.Metrics Maven / Gradle / Ivy

There is a newer version: 3.2.4
Show newest version
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