Skip to content

Commit

Permalink
Fix healtcheck documentation.
Browse files Browse the repository at this point in the history
Updated the output for the health check using the RPC implementation.

Signed-off-by: Branislav Malo <[email protected]>
Signed-off-by: Branislav Malo <[email protected]>
  • Loading branch information
BranislavMalo committed Sep 10, 2024
1 parent 5a4a3f1 commit 265546f
Showing 1 changed file with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,16 @@ curl --location --request POST 'http://localhost:8181/rests/operations/uniconfig
--header 'Content-Type: application/json'
```

**Response if database persistence is disabled:**

```json RPC Response, Status: 200
{
"output": {
"healthy": true,
"message": "DB persistence is disabled"
}
}
```

**Response if database persistence is enabled and the database connection is valid:**

```json RPC Response, Status: 200
{
"output": {
"healthy": true,
"message": "DB connection is alive"
"status": "UP",
"details": {
"state": "ACCEPTING_TRAFFIC",
"reason": "The application is ready to receive traffic and DB connection is alive"
}
}
}
```
Expand All @@ -40,8 +32,11 @@ curl --location --request POST 'http://localhost:8181/rests/operations/uniconfig
```json RPC Response, Status: 200
{
"output": {
"healthy": false,
"message": "Error connecting to DB"
"status": "DOWN",
"details": {
"state": "ACCEPTING_TRAFFIC",
"reason": "Error connecting to DB"
}
}
}
```

0 comments on commit 265546f

Please sign in to comment.