Skip to content

Commit

Permalink
Merge pull request #251 from BranislavMalo/edit_health_rpc
Browse files Browse the repository at this point in the history
Fix healtcheck documentation.
  • Loading branch information
Vasyl-9 authored Sep 16, 2024
2 parents a572ddf + 265546f commit 9a34fec
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 9a34fec

Please sign in to comment.