1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

chore: add docs for health

This commit is contained in:
Ivar Conradi Østhus 2021-02-25 16:55:18 +01:00
parent 3dc3c07289
commit c4c33c1f4a
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09
4 changed files with 36 additions and 3 deletions

View File

@ -0,0 +1,30 @@
---
id: health
title: /health
---
# Health API
`GET http://unleash.host.com/health`
Used to check the health of the running Unleash instance. This endpoint has two possible responses:
`Status: 200`
```json
{
"health": "GOOD"
}
```
This response means everything is OK. Unleash is able to talk to the PostgreSQL
`Status: 500`
```json
{
"health": "BAD"
}
```
This response indicates that Unleash is not able to talk to PostgreSQL and will not be able to serve requests.

View File

@ -80,7 +80,10 @@
"api/index": {
"title": "API Documentation"
},
"api/internal": {
"api/internal/health": {
"title": "/health"
},
"api/internal/internal": {
"title": "/internal-backstage/prometheus"
},
"api/open_api": {
@ -196,7 +199,7 @@
},
"categories": {
"Getting started": "Getting started",
"Working with your SDK": "Working with your SDK",
"Working with the SDK": "Working with the SDK",
"Addons framework": "Addons framework",
"Advanced": "Advanced",
"Client": "Client",

View File

@ -51,7 +51,7 @@
"api/admin/feature-types",
"api/admin/addons"
],
"Internal": ["api/internal"],
"Internal": ["api/internal/internal", "api/internal/health"],
"Specification": ["api/open_api"]
},
"Deploy and manage": {