class MetricsController {

    @Autowired
    private CommonDataQueue commonDataQueue;

    @GetMapping()
    @Operation(summary = "Get Hertzbeat Metrics Data")
    public ResponseEntity<Message<Map<String, Object>>> getMetricsInfo() {<FILL_FUNCTION_BODY>}
}

        Map<String, Object> metricsInfo = new HashMap<>(8);
        if (commonDataQueue instanceof InMemoryCommonDataQueue) {
            Map<String, Integer> queueInfo = ((InMemoryCommonDataQueue) commonDataQueue).getQueueSizeMetricsInfo();
            metricsInfo.putAll(queueInfo);
        }
        return ResponseEntity.ok(Message.success(metricsInfo));
    
<no_super_class>