Class MonitoringResource

java.lang.Object
io.goobi.viewer.api.rest.v1.monitoring.MonitoringResource

@Path("/monitoring") public class MonitoringResource extends Object
REST resource providing application health checks and version information for monitoring systems.
  • Constructor Details

    • MonitoringResource

      public MonitoringResource()
  • Method Details

    • checkServices

      @GET @Produces("application/json") public MonitoringStatus checkServices()
      Checks the availability of Solr, the database and the message queue, and reports version information for viewer-core, its connector, indexer, content server and installed modules.

      Solr is checked twice: the ping handler reports reachability, a minimal search query reports that the index actually answers queries.

      Each check is independent: a failing Solr, query, schema, database or message queue check is recorded in the response rather than aborting the request, so the response can report a subset of failures alongside the version information.

      Returns:
      MonitoringStatus as JSON