class MetricController {

    @GetMapping
    public Map<String, Long> getNumberOfPes(
            @RequestParam(value = "fromDate") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime fromDate,
            @RequestParam(value = "toDate") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime toDate,
            @RequestParam(value = "statusType", required = false) StatusType statusType) {
        return metricService.getNumberOfPes(fromDate, toDate, statusType);
    }

    public  MetricController(MetricService metricService);

}