using PARR.Domain.DTOs.Workload;
using PARR.Domain.Enums;

namespace PARR.Core.Services.Workload.Interfaces
{
    /// <summary>
    /// Сервис формирования отчетности о загруженности
    /// </summary>
    public interface IWorkloadService
    {
        /// <summary>
        /// Получить статус кэш/отчета
        /// </summary>
        /// <returns></returns>
        Task<WorkloadCacheInfo> GetReportInfoAsync();

        /// <summary>
        /// Получить отчет о загруженности
        /// </summary>
        /// <param name="reportType"></param>
        /// <param name="dateStart"></param>
        /// <param name="durationDays"></param>
        /// <param name="offset"></param>
        /// <param name="filterParam"></param>
        /// <returns></returns>
        Task<WorkloadReport?> GetWorkloadReport(WorkloadReportType reportType, DateOnly dateStart, int durationDays, TimeSpan offset, string? filterParam);
    }
}
