package at.procon.eventhub.processing.dto;

import java.util.List;

public record RuntimeSupportEvidenceNormalizationDebugDto(
        int inputEventCount,
        int normalizedSupportEvidenceEventCount,
        int unchangedEventCount,
        List<String> notes
) {
    public RuntimeSupportEvidenceNormalizationDebugDto {
        inputEventCount = Math.max(0, inputEventCount);
        normalizedSupportEvidenceEventCount = Math.max(0, normalizedSupportEvidenceEventCount);
        unchangedEventCount = Math.max(0, unchangedEventCount);
        notes = notes == null ? List.of() : List.copyOf(notes);
    }
}
