From a2a141acdcc9f2e354aaa7dc6e30ed2d27bf6ea5 Mon Sep 17 00:00:00 2001 From: Ludovic DEHON Date: Thu, 5 May 2022 11:40:41 +0200 Subject: [PATCH] fix(ui): fix stats controller --- .../io/kestra/webserver/controllers/StatsController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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