close

Filter

loading table of contents...

Operations Basics / Version 2401

Table Of Contents

4.10.2 Health Endpoint

The health endpoint can be enriched with custom health checks by adding classes extending the org.springframework.boot.actuate.health.HealthIndicator class of the Spring Boot framework. Each health indicator is a bean with a name suffix healthIndicator. In the example below we will describe the usage on a health indicator with the name uapiConnection.

By default the health indicator can be enabled or disbled by configuring the following property:

Endpoint properties. 

management.health.uapiConnection.enabled=true

When activated, the health indicator will extend the default health endpoint with its name as its subpath.

Endpoint details activated. 

management.endpoint.health.show-details=always

Endpoint URL. 

http://localhost:8081/actuator/health/uapiConnection

When requested using a GET HTTP request, the endpoint will response with a HTTP return code, matching the state of the check.

Response. 

{
  "status": "UP", 1
  "uapiConnection": {
    "status": "UP", 2
    "details": {
      "content repository": "OK" 3
    }
  }
}

1

Global health endpoint status.

2

Health status of the uapiConnection health indicator.

3

Details of the uapiConnection health indicator when detailed view is enabled.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.