Class HealthController

java.lang.Object
io.openml.gearbox.controller.HealthController

@RestController @RequestMapping("/api/health") public class HealthController extends Object
REST controller dedicated to providing operational health checks for the service.

This controller's single responsibility is to report on the application's status in its running environment. It is separate from the core application logic.

  • Constructor Details

    • HealthController

      public HealthController()
  • Method Details

    • healthCheck

      @GetMapping public org.springframework.http.ResponseEntity<String> healthCheck()
      A simple health check endpoint to verify that the service is running.

      The deployment script polls this endpoint after starting a new container.

      Returns:
      A 200 OK response with the body "UP".