class PushGatewayController {

    @Autowired
    private PushGatewayService pushGatewayService;

    @PostMapping()
    @Operation(summary = "Push metric data to hertzbeat pushgateway", description = "Push metric data to hertzbeat pushgateway")
    public ResponseEntity<Message<Void>> pushMetrics(HttpServletRequest request) throws IOException {<FILL_FUNCTION_BODY>}

}

        InputStream inputStream = request.getInputStream();
        boolean result = pushGatewayService.pushMetricsData(inputStream);
        if (result) {
            return ResponseEntity.ok(Message.success("Push success"));
        }
        else {
            return ResponseEntity.ok(Message.success("Push failed"));
        }
    
<no_super_class>