diff --git a/webserver/src/main/java/io/kestra/webserver/controllers/StatsController.java b/webserver/src/main/java/io/kestra/webserver/controllers/StatsController.java index e8349ea208..682fb7d42e 100644 --- a/webserver/src/main/java/io/kestra/webserver/controllers/StatsController.java +++ b/webserver/src/main/java/io/kestra/webserver/controllers/StatsController.java @@ -31,7 +31,7 @@ public class StatsController { @Post(uri = "executions/daily", produces = MediaType.TEXT_JSON) @Operation(tags = {"Stats"}, summary = "Get daily statistics for executions") public List dailyStatistics( - @Parameter(description = "Lucene string filter") @QueryValue(value = "q") String q, + @Parameter(description = "Lucene string filter") String q, @Parameter(description = "The start datetime, default to now - 30 days") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") ZonedDateTime startDate, @Parameter(description = "The end datetime, default to now") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") ZonedDateTime endDate ) { @@ -49,7 +49,7 @@ public List dailyStatistics( @Post(uri = "taskruns/daily", produces = MediaType.TEXT_JSON) @Operation(tags = {"Stats"}, summary = "Get daily statistics for taskRuns") public List taskRunsDailyStatistics( - @Parameter(description = "Lucene string filter") @QueryValue(value = "q") String q, + @Parameter(description = "Lucene string filter") String q, @Parameter(description = "The start datetime, default to now - 30 days") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") ZonedDateTime startDate, @Parameter(description = "The end datetime, default to now") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") ZonedDateTime endDate ) { @@ -65,7 +65,7 @@ public List taskRunsDailyStatistics( @Post(uri = "executions/daily/group-by-flow", produces = MediaType.TEXT_JSON) @Operation(tags = {"Stats"}, summary = "Get daily statistics for executions group by namespaces and flows") public Map>> dailyGroupByFlowStatistics( - @Parameter(description = "Lucene string filter") @QueryValue(value = "q") String q, + @Parameter(description = "Lucene string filter") String q, @Parameter(description = "The start datetime, default to now - 30 days") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") ZonedDateTime startDate, @Parameter(description = "The end datetime, default to now") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") ZonedDateTime endDate, @Parameter(description = "Return only namespace result and skip flows") @Nullable Boolean namespaceOnly