diff --git a/src/main/java/io/kontur/disasterninja/service/AnalyticsService.java b/src/main/java/io/kontur/disasterninja/service/AnalyticsService.java index 86cbcaea..8d8c822d 100644 --- a/src/main/java/io/kontur/disasterninja/service/AnalyticsService.java +++ b/src/main/java/io/kontur/disasterninja/service/AnalyticsService.java @@ -83,7 +83,9 @@ private List organizeResponse(List functions, Li switch (function.getFunction()) { case "maxX" -> combinedData.setPrefix("Maximum"); + case "minX" -> combinedData.setPrefix("Minimum"); case "sumX" -> combinedData.setPrefix("Total"); + case "avgX" -> combinedData.setPrefix("Average"); case "sumXWhereNoY" -> combinedData.setPrefix("Total with no"); case "percentageXWhereNoY" -> combinedData.setPrefix("Percent with no"); default -> throw new WebApplicationException("Not a proper function name found", HttpStatus.INTERNAL_SERVER_ERROR);