8000 feat(healthcheck): add failing sections to report by coadler · Pull Request #7789 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat(healthcheck): add failing sections to report #7789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! feat(healthcheck): add failing sections to report
  • Loading branch information
coadler committed Jun 1, 2023
commit e07c2806032adada5646589ac628ea8af9b8160b
6 changes: 6 additions & 0 deletions coderd/apidoc/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions coderd/apidoc/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion coderd/healthcheck/healthcheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestHealthcheck(t *testing.T) {
},
},
healthy: true,
failingSections: []string{},
failingSections: nil,
}, {
name: "DERPFail",
checker: &testChecker{
Expand Down
1 change: 1 addition & 0 deletions docs/api/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
}
}
},
"failing_sections": ["string"],
"healthy": true,
"time": "string",
"websocket": {
Expand Down
16 changes: 9 additions & 7 deletions docs/api/schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -6376,6 +6376,7 @@ Parameter represents a set value for the scope.
}
}
},
"failing_sections": ["string"],
"healthy": true,
"time": "string",
"websocket": {
Expand All @@ -6391,13 +6392,14 @@ Parameter represents a set value for the scope.

### Properties

| Name | Type | Required | Restrictions | Description |
| ------------ | ---------------------------------------------------------- | -------- | ------------ | ------------------------------------------------ |
| `access_url` | [healthcheck.AccessURLReport](#healthcheckaccessurlreport) | false | | |
| `derp` | [healthcheck.DERPReport](#healthcheckderpreport) | false | | |
| `healthy` | 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 | | |
| Name | Type | Required | Restrictions | Description |
| ------------------ | ---------------------------------------------------------- | -------- | ------------ | ------------------------------------------------ |
| `access_url` | [healthcheck.AccessURLReport](#healthcheckaccessurlreport) | false | | |
| `derp` | [healthcheck.DERPReport](#healthcheckderpreport) | false | | |
| `failing_sections` | array of string | false | | |
| `healthy` | 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

Expand Down
0