Class MonitoringResource
java.lang.Object
io.goobi.viewer.api.rest.v1.monitoring.MonitoringResource
REST resource providing application health checks and version information for monitoring systems.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChecks 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.
-
Constructor Details
-
MonitoringResource
public MonitoringResource()
-
-
Method Details
-
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:
MonitoringStatusas JSON
-