Class AdminStatisticsAjaxController
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.web.admin.AdminStatisticsAjaxController
-
@RestController @RequestMapping("/ajax/statistics") public class AdminStatisticsAjaxController extends java.lang.Object
Controller to handle ajax requests for the Admin Panel statistics page.
-
-
Constructor Summary
Constructors Constructor Description AdminStatisticsAjaxController(UIAdminStatisticsService uiAdminStatisticsService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<StatisticsResponse>
getAdminAnalysesStatistics(int timePeriod)
Get updated usage statistics for analyses for the provided time periodorg.springframework.http.ResponseEntity<StatisticsResponse>
getAdminProjectStatistics(int timePeriod)
Get updated usage statistics for projects for the provided time periodorg.springframework.http.ResponseEntity<StatisticsResponse>
getAdminSampleStatistics(int timePeriod)
Get updated usage statistics for samples for the provided time periodorg.springframework.http.ResponseEntity<BasicStatsResponse>
getAdminStatistics(int timePeriod)
Get basic usage statistics for projects, samples, analyses, and users for the provided time periodorg.springframework.http.ResponseEntity<StatisticsResponse>
getAdminUserStatistics(int timePeriod)
Get updated usage statistics for users for the provided time period
-
-
-
Constructor Detail
-
AdminStatisticsAjaxController
@Autowired public AdminStatisticsAjaxController(UIAdminStatisticsService uiAdminStatisticsService)
-
-
Method Detail
-
getAdminStatistics
@GetMapping("/basic") public org.springframework.http.ResponseEntity<BasicStatsResponse> getAdminStatistics(@RequestParam int timePeriod)
Get basic usage statistics for projects, samples, analyses, and users for the provided time period- Parameters:
timePeriod
- The time period for which to retrieve usage stats for- Returns:
- dto with basic usage stats
-
getAdminProjectStatistics
@GetMapping("/projects") public org.springframework.http.ResponseEntity<StatisticsResponse> getAdminProjectStatistics(@RequestParam int timePeriod)
Get updated usage statistics for projects for the provided time period- Parameters:
timePeriod
- The time period for which to retrieve updated project usage stats for- Returns:
- dto with updated project usage stats
-
getAdminUserStatistics
@GetMapping("/users") public org.springframework.http.ResponseEntity<StatisticsResponse> getAdminUserStatistics(@RequestParam int timePeriod)
Get updated usage statistics for users for the provided time period- Parameters:
timePeriod
- The time period for which to retrieve updated user usage stats for- Returns:
- dto with updated user usage stats
-
getAdminAnalysesStatistics
@GetMapping("/analyses") public org.springframework.http.ResponseEntity<StatisticsResponse> getAdminAnalysesStatistics(@RequestParam int timePeriod)
Get updated usage statistics for analyses for the provided time period- Parameters:
timePeriod
- The time period for which to retrieve updated analyses usage stats for- Returns:
- dto with updated analyses usage stats
-
getAdminSampleStatistics
@GetMapping("/samples") public org.springframework.http.ResponseEntity<StatisticsResponse> getAdminSampleStatistics(@RequestParam int timePeriod)
Get updated usage statistics for samples for the provided time period- Parameters:
timePeriod
- The time period for which to retrieve updated sample usage stats for- Returns:
- dto with updated sample usage stats
-
-