Skip to content

Commit

Permalink
#19494 add more analytics functions to DN BE (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
palina-krukovich authored Aug 30, 2024
1 parent a0bd94b commit e3893fc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ private List<AnalyticsResponseDto> organizeResponse(List<Function> 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);
Expand Down

0 comments on commit e3893fc

Please sign in to comment.