mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
chore: add docs for health
This commit is contained in:
parent
3dc3c07289
commit
c4c33c1f4a
30
docs/api/internal/health.md
Normal file
30
docs/api/internal/health.md
Normal 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.
|
@ -80,7 +80,10 @@
|
|||||||
"api/index": {
|
"api/index": {
|
||||||
"title": "API Documentation"
|
"title": "API Documentation"
|
||||||
},
|
},
|
||||||
"api/internal": {
|
"api/internal/health": {
|
||||||
|
"title": "/health"
|
||||||
|
},
|
||||||
|
"api/internal/internal": {
|
||||||
"title": "/internal-backstage/prometheus"
|
"title": "/internal-backstage/prometheus"
|
||||||
},
|
},
|
||||||
"api/open_api": {
|
"api/open_api": {
|
||||||
@ -196,7 +199,7 @@
|
|||||||
},
|
},
|
||||||
"categories": {
|
"categories": {
|
||||||
"Getting started": "Getting started",
|
"Getting started": "Getting started",
|
||||||
"Working with your SDK": "Working with your SDK",
|
"Working with the SDK": "Working with the SDK",
|
||||||
"Addons framework": "Addons framework",
|
"Addons framework": "Addons framework",
|
||||||
"Advanced": "Advanced",
|
"Advanced": "Advanced",
|
||||||
"Client": "Client",
|
"Client": "Client",
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
"api/admin/feature-types",
|
"api/admin/feature-types",
|
||||||
"api/admin/addons"
|
"api/admin/addons"
|
||||||
],
|
],
|
||||||
"Internal": ["api/internal"],
|
"Internal": ["api/internal/internal", "api/internal/health"],
|
||||||
"Specification": ["api/open_api"]
|
"Specification": ["api/open_api"]
|
||||||
},
|
},
|
||||||
"Deploy and manage": {
|
"Deploy and manage": {
|
||||||
|
Loading…
Reference in New Issue
Block a user