package com.gcsc.connection.monitoring.dto;

import java.time.LocalDateTime;

public record RequestLogSearchDto(
    LocalDateTime startDate,
    LocalDateTime endDate,
    Long serviceId,
    String requestStatus,
    String requestMethod,
    String requestIp,
    int page,
    int size
) {

    public RequestLogSearchDto {
        if (page < 0) page = 0;
        if (size <= 0) size = 20;
    }
}
