fix(coderd/healthcheck): add daemon-specific warnings to healthcheck output (#11490)

- Sorts provisioner daemons by name ascending in output
- Adds daemon-specific warnings to healthcheck output
- Reword some messages
This commit is contained in:
Cian Johnston
2024-01-08 13:55:00 +00:00
committed by GitHub
parent f4393d0c3f
commit 93cf5dcd47
8 changed files with 412 additions and 83 deletions

18
coderd/apidoc/docs.go generated
View File

@ -13109,10 +13109,10 @@ const docTemplate = `{
"error": {
"type": "string"
},
"provisioner_daemons": {
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/codersdk.ProvisionerDaemon"
"$ref": "#/definitions/healthcheck.ProvisionerDaemonsReportItem"
}
},
"severity": {
@ -13126,6 +13126,20 @@ const docTemplate = `{
}
}
},
"healthcheck.ProvisionerDaemonsReportItem": {
"type": "object",
"properties": {
"provisioner_daemon": {
"$ref": "#/definitions/codersdk.ProvisionerDaemon"
},
"warnings": {
"type": "array",
"items": {
"$ref": "#/definitions/health.Message"
}
}
}
},
"healthcheck.Report": {
"type": "object",
"properties": {