mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: use *string instead of error in healthcheck response (#8234)
This commit is contained in:
+13
-11
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user