@ExecuteOn(TaskExecutors.IO)
    @Post(uri = "logs/daily")
    @Operation(tags = {"Stats"}, summary = "Get daily statistics for logs")
    public List<LogStatistics> logsDailyStatistics(@Body @Valid LogStatisticRequest logStatisticRequest) {
        return logRepositoryInterface.statistics(
            logStatisticRequest.q(),
            tenantService.resolveTenant(),
            logStatisticRequest.namespace(),
            logStatisticRequest.flowId(),
            logStatisticRequest.logLevel(),
            logStatisticRequest.startDate() != null ? logStatisticRequest.startDate().withZoneSameInstant(ZoneId.systemDefault()) : null,
            logStatisticRequest.endDate() != null ? logStatisticRequest.endDate().withZoneSameInstant(ZoneId.systemDefault()) : null,
            null
        );
    }
@Test
    void logsDailyStatistics() {
        var dailyStatistics = client.toBlocking().retrieve(
            HttpRequest
                .POST("/api/v1/stats/logs/daily", new StatsController.LogStatisticRequest(null, null, null, null, ZonedDateTime.now().minusDays(1), ZonedDateTime.now()))
                .contentType(MediaType.APPLICATION_JSON),
            Argument.listOf(LogStatistics.class)
        );

        assertThat(dailyStatistics, notNullValue());
    }