Interface representing the details of a log entry.

interface LogDetails {
    attempts?: number;
    duration: number;
    headers?: Record<string, string>;
    method: string;
    requestBody?: any;
    responseBody?: any;
    status?: number;
    success: boolean;
    url?: string;
    urlTemplate: string;
}

Properties

attempts?: number

The number of attempts made (optional).

duration: number

The duration of the request in milliseconds.

headers?: Record<string, string>

The headers of the request (optional).

method: string

The HTTP method used for the request.

requestBody?: any

The request body (optional).

responseBody?: any

The response body (optional).

status?: number

The HTTP status code of the response (optional).

success: boolean

Indicates if the request was successful.

url?: string

The final URL used for the request (optional).

urlTemplate: string

The URL template used for the request.