mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site/src/api/typesGenerated): generate HealthSection enums (#11049)
Relates to #8971 - Introduces a codersdk.HealthSection enum type - Refactors existing references using strings to use new HealthSection type
This commit is contained in:
Generated
+4
-4
@@ -280,7 +280,7 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
|
||||
}
|
||||
]
|
||||
},
|
||||
"failing_sections": ["string"],
|
||||
"failing_sections": ["DERP"],
|
||||
"healthy": true,
|
||||
"severity": "ok",
|
||||
"time": "string",
|
||||
@@ -362,7 +362,7 @@ curl -X GET http://coder-server:8080/api/v2/debug/health/settings \
|
||||
|
||||
```json
|
||||
{
|
||||
"dismissed_healthchecks": ["string"]
|
||||
"dismissed_healthchecks": ["DERP"]
|
||||
}
|
||||
```
|
||||
|
||||
@@ -392,7 +392,7 @@ curl -X PUT http://coder-server:8080/api/v2/debug/health/settings \
|
||||
|
||||
```json
|
||||
{
|
||||
"dismissed_healthchecks": ["string"]
|
||||
"dismissed_healthchecks": ["DERP"]
|
||||
}
|
||||
```
|
||||
|
||||
@@ -408,7 +408,7 @@ curl -X PUT http://coder-server:8080/api/v2/debug/health/settings \
|
||||
|
||||
```json
|
||||
{
|
||||
"dismissed_healthchecks": ["string"]
|
||||
"dismissed_healthchecks": ["DERP"]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Generated
+28
-10
@@ -3170,19 +3170,37 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
| `user` |
|
||||
| `oidc` |
|
||||
|
||||
## codersdk.HealthSection
|
||||
|
||||
```json
|
||||
"DERP"
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
#### Enumerated Values
|
||||
|
||||
| Value |
|
||||
| ---------------- |
|
||||
| `DERP` |
|
||||
| `AccessURL` |
|
||||
| `Websocket` |
|
||||
| `Database` |
|
||||
| `WorkspaceProxy` |
|
||||
|
||||
## codersdk.HealthSettings
|
||||
|
||||
```json
|
||||
{
|
||||
"dismissed_healthchecks": ["string"]
|
||||
"dismissed_healthchecks": ["DERP"]
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ------------------------ | --------------- | -------- | ------------ | ----------- |
|
||||
| `dismissed_healthchecks` | array of string | false | | |
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ------------------------ | --------------------------------------------------------- | -------- | ------------ | ----------- |
|
||||
| `dismissed_healthchecks` | array of [codersdk.HealthSection](#codersdkhealthsection) | false | | |
|
||||
|
||||
## codersdk.Healthcheck
|
||||
|
||||
@@ -5182,15 +5200,15 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
|
||||
```json
|
||||
{
|
||||
"dismissed_healthchecks": ["string"]
|
||||
"dismissed_healthchecks": ["DERP"]
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ------------------------ | --------------- | -------- | ------------ | ----------- |
|
||||
| `dismissed_healthchecks` | array of string | false | | |
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ------------------------ | --------------------------------------------------------- | -------- | ------------ | ----------- |
|
||||
| `dismissed_healthchecks` | array of [codersdk.HealthSection](#codersdkhealthsection) | false | | |
|
||||
|
||||
## codersdk.UpdateRoles
|
||||
|
||||
@@ -7952,7 +7970,7 @@ If the schedule is empty, the user will be updated to use the default schedule.|
|
||||
}
|
||||
]
|
||||
},
|
||||
"failing_sections": ["string"],
|
||||
"failing_sections": ["DERP"],
|
||||
"healthy": true,
|
||||
"severity": "ok",
|
||||
"time": "string",
|
||||
@@ -8015,7 +8033,7 @@ If the schedule is empty, the user will be updated to use the default schedule.|
|
||||
| `coder_version` | string | false | | The Coder version of the server that the report was generated on. |
|
||||
| `database` | [healthcheck.DatabaseReport](#healthcheckdatabasereport) | false | | |
|
||||
| `derp` | [derphealth.Report](#derphealthreport) | false | | |
|
||||
| `failing_sections` | array of string | false | | Failing sections is a list of sections that have failed their healthcheck. |
|
||||
| `failing_sections` | array of [codersdk.HealthSection](#codersdkhealthsection) | false | | Failing sections is a list of sections that have failed their healthcheck. |
|
||||
| `healthy` | boolean | false | | Healthy is true if the report returns no errors. Deprecated: use `Severity` instead |
|
||||
| `severity` | [health.Severity](#healthseverity) | false | | Severity indicates the status of Coder health. |
|
||||
| `time` | string | false | | Time is the time the report was generated at. |
|
||||
|
||||
Reference in New Issue
Block a user