feat(coderd/healthcheck): add access URL error codes and healthcheck doc (#10915)

Relates to #8965

- Added error codes for separate code paths in health checks
- Prefixed errors and warnings with error code prefixes
- Added a docs page with details on each code, cause and solution

Co-authored-by: Muhammad Atif Ali <atif@coder.com>
This commit is contained in:
Cian Johnston
2023-11-30 12:15:40 +00:00
committed by GitHub
co-authored by Muhammad Atif Ali
parent 5b2f43619b
commit 4f9292859d
16 changed files with 479 additions and 72 deletions
+37
View File
@@ -2203,6 +2203,43 @@ export const ClibaseValueSources: ClibaseValueSource[] = [
// The code below is generated from coderd/healthcheck/health.
// From health/model.go
export type HealthCode =
| "EACS01"
| "EACS02"
| "EACS03"
| "EACS04"
| "EDB01"
| "EDB02"
| "EDERP01"
| "EDERP02"
| "EUNKNOWN"
| "EWP01"
| "EWP02"
| "EWP03"
| "EWP04"
| "EWS01"
| "EWS02"
| "EWS03";
export const HealthCodes: HealthCode[] = [
"EACS01",
"EACS02",
"EACS03",
"EACS04",
"EDB01",
"EDB02",
"EDERP01",
"EDERP02",
"EUNKNOWN",
"EWP01",
"EWP02",
"EWP03",
"EWP04",
"EWS01",
"EWS02",
"EWS03",
];
// From health/model.go
export type HealthSeverity = "error" | "ok" | "warning";
export const HealthSeveritys: HealthSeverity[] = ["error", "ok", "warning"];