package com.eactive.testmaster.loadtest.entity;

import java.util.List;
import java.util.Map;

public class APILoadTestResult {

    private String testName;
    private long timestamp;
    private double averageResponseTime;
    private double maxResponseTime;
    private double minResponseTime;
    private int totalRequests;
    private double throughput; // requests per second
    private double errorRate; // percentage of requests that resulted in errors
    private int concurrentUsers;
    private double cpuUsagePercentage;
    private double memoryUsagePercentage;
    private Map<Integer, Integer> statusCodeDistribution; // HTTP status code -> count
    private Map<String, Double> percentileResponseTimes; // e.g., "P95" -> 95th percentile response time
    private double networkIO; // Network I/O usage
    private double diskIO; // Disk I/O usage
    private List<String> errors; // List of error messages or types encountered during the test


}
