| | | 1 | | namespace RoleRadar.Application.Insights; |
| | | 2 | | |
| | | 3 | | /// <summary>The window is written as the API names it, "last90Days" or "allTime" (see <see cref="InsightsWindows"/>).</ |
| | | 4 | | public sealed record InsightsStatsDto( |
| | | 5 | | DateOnly AsOf, |
| | | 6 | | string Window, |
| | | 7 | | DateOnly? WindowStart, |
| | | 8 | | ResponseTimeDto ResponseTime, |
| | | 9 | | IReadOnlyList<WeeklyApplicationsDto> WeeklyApplications, |
| | | 10 | | SearchRunYieldDto SearchRunYield); |
| | | 11 | | |
| | | 12 | | /// <summary>Median days from applied to first response, and how many responses it is based on.</summary> |
| | | 13 | | public sealed record ResponseTimeDto(double? MedianDays, int SampleSize); |
| | | 14 | | |
| | | 15 | | /// <summary>Applications whose applied date falls in the Monday-start UTC week beginning on <c>WeekStart</c>.</summary> |
| | | 16 | | public sealed record WeeklyApplicationsDto(DateOnly WeekStart, int Count); |
| | | 17 | | |
| | | 18 | | /// <summary>Search-run yield, oldest first, at most the latest <see cref="InsightsStatsCalculator.MaxRunYield"/> runs.< |
| | | 19 | | public sealed record SearchRunYieldDto(IReadOnlyList<SearchRunYieldPointDto> Runs, bool Truncated); |
| | | 20 | | |
| | 1440 | 21 | | public sealed record SearchRunYieldPointDto(DateTimeOffset StartedAt, int NewPostings); |