mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat(healthcheck): add websocket report (#7689)
This commit is contained in:
@ -207,7 +207,14 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
|
||||
}
|
||||
},
|
||||
"pass": true,
|
||||
"time": "string"
|
||||
"time": "string",
|
||||
"websocket": {
|
||||
"error": null,
|
||||
"response": {
|
||||
"body": "string",
|
||||
"code": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -6377,7 +6377,14 @@ Parameter represents a set value for the scope.
|
||||
}
|
||||
},
|
||||
"pass": true,
|
||||
"time": "string"
|
||||
"time": "string",
|
||||
"websocket": {
|
||||
"error": null,
|
||||
"response": {
|
||||
"body": "string",
|
||||
"code": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@ -6389,6 +6396,42 @@ Parameter represents a set value for the scope.
|
||||
| `derp` | [healthcheck.DERPReport](#healthcheckderpreport) | false | | |
|
||||
| `pass` | boolean | false | | Healthy is true if the report returns no errors. |
|
||||
| `time` | string | false | | Time is the time the report was generated at. |
|
||||
| `websocket` | [healthcheck.WebsocketReport](#healthcheckwebsocketreport) | false | | |
|
||||
|
||||
## healthcheck.WebsocketReport
|
||||
|
||||
```json
|
||||
{
|
||||
"error": null,
|
||||
"response": {
|
||||
"body": "string",
|
||||
"code": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ---------- | -------------------------------------------------------------- | -------- | ------------ | ----------- |
|
||||
| `error` | any | false | | |
|
||||
| `response` | [healthcheck.WebsocketResponse](#healthcheckwebsocketresponse) | false | | |
|
||||
|
||||
## healthcheck.WebsocketResponse
|
||||
|
||||
```json
|
||||
{
|
||||
"body": "string",
|
||||
"code": 0
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ------ | ------- | -------- | ------------ | ----------- |
|
||||
| `body` | string | false | | |
|
||||
| `code` | integer | false | | |
|
||||
|
||||
## netcheck.Report
|
||||
|
||||
|
Reference in New Issue
Block a user