Send an HTTP POST request to /api/indicator/custom
with a Bearer Authorization as an header.
{
"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.
The default value is set to UP |
---|
Send an HTTP GET request to /actuator/health
.
{
"status": "UP",
"details": {
"indicator": {
"status": "MAINTENANCE"
},
"diskSpace":{
"status": "UP",
"details": {
"total": 254538137600,
"free": 104024383488,
"threshold": 10485760
}
},
"mongo": {
"status": "UP",
"details": {
"version": "3.6.4"
}
}
}
}