fix: use *string instead of error in healthcheck response (#8234)

This commit is contained in:
Colin Adler
2023-06-27 19:13:54 +00:00
committed by GitHub
parent e2e07b01e9
commit b8a143566b
13 changed files with 195 additions and 114 deletions
+13 -11
View File
@@ -40,20 +40,22 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
```json
{
"access_url": {
"error": null,
"access_url": "string",
"error": "string",
"healthy": true,
"healthz_response": "string",
"reachable": true,
"status_code": 0
},
"coder_version": "string",
"database": {
"error": null,
"error": "string",
"healthy": true,
"latency": 0,
"reachable": true
},
"derp": {
"error": null,
"error": "string",
"healthy": true,
"netcheck": {
"captivePortal": "string",
@@ -85,18 +87,18 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
"udp": true,
"upnP": "string"
},
"netcheck_err": null,
"netcheck_err": "string",
"netcheck_logs": ["string"],
"regions": {
"property1": {
"error": null,
"error": "string",
"healthy": true,
"node_reports": [
{
"can_exchange_messages": true,
"client_errs": [[null]],
"client_errs": [["string"]],
"client_logs": [["string"]],
"error": null,
"error": "string",
"healthy": true,
"node": {
"certName": "string",
@@ -150,14 +152,14 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
}
},
"property2": {
"error": null,
"error": "string",
"healthy": true,
"node_reports": [
{
"can_exchange_messages": true,
"client_errs": [[null]],
"client_errs": [["string"]],
"client_logs": [["string"]],
"error": null,
"error": "string",
"healthy": true,
"node": {
"certName": "string",
@@ -216,7 +218,7 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
"healthy": true,
"time": "string",
"websocket": {
"error": null,
"error": "string",
"healthy": true,
"response": {
"body": "string",