Skip to content

Commit e07c280

Browse files
committed
fixup! feat(healthcheck): add failing sections to report
1 parent 2ef5eee commit e07c280

File tree

5 files changed

+23
-8
lines changed

5 files changed

+23
-8
lines changed

coderd/apidoc/docs.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/healthcheck/healthcheck_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func TestHealthcheck(t *testing.T) {
4949
},
5050
},
5151
healthy: true,
52-
failingSections: []string{},
52+
failingSections: nil,
5353
}, {
5454
name: "DERPFail",
5555
checker: &testChecker{

docs/api/debug.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
206206
}
207207
}
208208
},
209+
"failing_sections": ["string"],
209210
"healthy": true,
210211
"time": "string",
211212
"websocket": {

docs/api/schemas.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6376,6 +6376,7 @@ Parameter represents a set value for the scope.
63766376
}
63776377
}
63786378
},
6379+
"failing_sections": ["string"],
63796380
"healthy": true,
63806381
"time": "string",
63816382
"websocket": {
@@ -6391,13 +6392,14 @@ Parameter represents a set value for the scope.
63916392

63926393
### Properties
63936394

6394-
| Name | Type | Required | Restrictions | Description |
6395-
| ------------ | ---------------------------------------------------------- | -------- | ------------ | ------------------------------------------------ |
6396-
| `access_url` | [healthcheck.AccessURLReport](#healthcheckaccessurlreport) | false | | |
6397-
| `derp` | [healthcheck.DERPReport](#healthcheckderpreport) | false | | |
6398-
| `healthy` | boolean | false | | Healthy is true if the report returns no errors. |
6399-
| `time` | string | false | | Time is the time the report was generated at. |
6400-
| `websocket` | [healthcheck.WebsocketReport](#healthcheckwebsocketreport) | false | | |
6395+
| Name | Type | Required | Restrictions | Description |
6396+
| ------------------ | ---------------------------------------------------------- | -------- | ------------ | ------------------------------------------------ |
6397+
| `access_url` | [healthcheck.AccessURLReport](#healthcheckaccessurlreport) | false | | |
6398+
| `derp` | [healthcheck.DERPReport](#healthcheckderpreport) | false | | |
6399+
| `failing_sections` | array of string | false | | |
6400+
| `healthy` | boolean | false | | Healthy is true if the report returns no errors. |
6401+
| `time` | string | false | | Time is the time the report was generated at. |
6402+
| `websocket` | [healthcheck.WebsocketReport](#healthcheckwebsocketreport) | false | | |
64016403

64026404
## healthcheck.WebsocketReport
64036405

0 commit comments

Comments
 (0)