class StatisticsController implements Constants {

    @RequestMapping(path = "/v1/autofixstats", method = RequestMethod.GET)
    @ResponseBody
    
    public ResponseEntity<Object> getAutofixStats() {
        Map<String, List<Map<String, Object>>> response = new HashMap<>();
        try {
            response.put("summary", statsService.getAutofixStats());

        } catch (Exception e) {
            LOGGER.error("Error fetching Auto fix stats", e);
            return ResponseUtils.buildFailureResponse(e);
        }
        return ResponseUtils.buildSucessResponse(response);
    }

}