package com.test.common.core.domain.model;

/**
 * @author liangdaliang
 * @Description：Http错误编码统计结果
 * @date 2025-04-17 19:05
 */
public class ErrorCodeStat {
    private final String responseCode;
    private final Long count;
    private final Double errorRatio; // 占所有错误的比率
    private final Double totalRatio;  // 占所有请求的比率

    public ErrorCodeStat(String responseCode, long count, double errorRatio, double totalRatio) {
        this.responseCode = responseCode;
        this.count = count;
        this.errorRatio = errorRatio;
        this.totalRatio = totalRatio;
    }

    public String getResponseCode() {
        return responseCode;
    }

    public Long getCount() {
        return count;
    }

    public Double getErrorRatio() {
        return errorRatio;
    }

    public Double getTotalRatio() {
        return totalRatio;
    }
}
