Package com.ubs.backend.services
Class GetStatistics
java.lang.Object
com.ubs.backend.services.GetStatistics
- Since:
- 25.08.2021
- Author:
- Tim Irmler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallSentAnswersPerTime(String timeRangeString, javax.servlet.http.HttpServletRequest request)amountAnsweredQuestionsPerTime(String timeRangeString, javax.servlet.http.HttpServletRequest request)amountUnansweredQuestionsPerTime(String timeRangeString, javax.servlet.http.HttpServletRequest request)answeredVsUnansweredPerTime(String timeRangeString, javax.servlet.http.HttpServletRequest request)
-
Constructor Details
-
GetStatistics
public GetStatistics()
-
-
Method Details
-
allSentAnswersPerTime
@GET @Produces("application/json") @Path("/sentAnswersPerTime") public String allSentAnswersPerTime(@QueryParam("timeRange") String timeRangeString, @Context javax.servlet.http.HttpServletRequest request)- Parameters:
timeRangeString- the time range which the statistics will be returned for- Returns:
- a JSON Array with the Statistics
- Since:
- 25.08.2021
-
answeredVsUnansweredPerTime
@GET @Produces("application/json") @Path("/answeredVsUnansweredPerTime") public String answeredVsUnansweredPerTime(@QueryParam("timeRange") String timeRangeString, @Context javax.servlet.http.HttpServletRequest request)- Parameters:
timeRangeString- the time range which the statistics will be returned for- Returns:
- a JSON Array with the Statistics
- Since:
- 30.08.2021
-
amountAnsweredQuestionsPerTime
@GET @Produces("application/json") @Path("/answeredQuestionsPerTime") public String amountAnsweredQuestionsPerTime(@QueryParam("timeRange") String timeRangeString, @Context javax.servlet.http.HttpServletRequest request)- Parameters:
timeRangeString- the time range which the statistics will be returned for- Returns:
- a JSON Array with the Statistics
- Since:
- 30.08.2021
-
amountUnansweredQuestionsPerTime
@GET @Produces("application/json") @Path("/unansweredQuestionsPerTime") public String amountUnansweredQuestionsPerTime(@QueryParam("timeRange") String timeRangeString, @Context javax.servlet.http.HttpServletRequest request)- Parameters:
timeRangeString- the time range which the statistics will be returned for- Returns:
- a JSON Array with the Statistics
- Since:
- 30.08.2021
-