Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.03 KB

helpers.md

File metadata and controls

54 lines (41 loc) · 1.03 KB

Helpers

Custom Health indicator

Set an indicator status for the API

Send an HTTP POST request to /api/indicator/custom with a Bearer Authorization as an header.

Example
{
	"status": "MAINTENANCE" 
}

The possible values are UP, DOWN and MAINTENANCE (check the Indicator.java file for more details).

It will return a 201 Created code if the operation was successful.

Retrieve this health indicator

⚠️ The default value is set to UP

Send an HTTP GET request to /actuator/health.

Response
{  
   "status": "UP",
   "details": {  
      "indicator": {  
         "status": "MAINTENANCE"
      },
      "diskSpace":{  
         "status": "UP",
         "details": {  
            "total": 254538137600,
            "free": 104024383488,
            "threshold": 10485760
         }
      },
      "mongo": {  
         "status": "UP",
         "details": {  
            "version": "3.6.4"
         }
      }
   }
}