hotfix(healthcheck): properly calculate healthy status (#7746)

This commit is contained in:
Colin Adler
2023-05-31 15:17:33 -05:00
committed by GitHub
parent 828f33ac7b
commit f1d27ba42d
7 changed files with 43 additions and 29 deletions

9
coderd/apidoc/docs.go generated
View File

@ -10322,13 +10322,13 @@ const docTemplate = `{
"healthy": {
"type": "boolean"
},
"healthzResponse": {
"healthz_response": {
"type": "string"
},
"reachable": {
"type": "boolean"
},
"statusCode": {
"status_code": {
"type": "integer"
}
}
@ -10440,7 +10440,7 @@ const docTemplate = `{
"derp": {
"$ref": "#/definitions/healthcheck.DERPReport"
},
"pass": {
"healthy": {
"description": "Healthy is true if the report returns no errors.",
"type": "boolean"
},
@ -10457,6 +10457,9 @@ const docTemplate = `{
"type": "object",
"properties": {
"error": {},
"healthy": {
"type": "boolean"
},
"response": {
"$ref": "#/definitions/healthcheck.WebsocketResponse"
}