feat: add healthcheck database section (#8060)

This commit is contained in:
Colin Adler
2023-06-20 10:13:22 -05:00
committed by GitHub
parent 2db4488337
commit 823127e761
11 changed files with 284 additions and 12 deletions

18
coderd/apidoc/docs.go generated
View File

@ -10017,12 +10017,30 @@ const docTemplate = `{
"error": {}
}
},
"healthcheck.DatabaseReport": {
"type": "object",
"properties": {
"error": {},
"healthy": {
"type": "boolean"
},
"latency": {
"type": "integer"
},
"reachable": {
"type": "boolean"
}
}
},
"healthcheck.Report": {
"type": "object",
"properties": {
"access_url": {
"$ref": "#/definitions/healthcheck.AccessURLReport"
},
"database": {
"$ref": "#/definitions/healthcheck.DatabaseReport"
},
"derp": {
"$ref": "#/definitions/healthcheck.DERPReport"
},