Skip to content
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
Deprecation notice
  • Loading branch information
mtojek committed Nov 23, 2023
commit b77763a26e4891c2a57638061fcc483d23b268e7
14 changes: 7 additions & 7 deletions coderd/apidoc/docs.go

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

14 changes: 7 additions & 7 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/accessurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

// @typescript-generate AccessURLReport
type AccessURLReport struct {
// Healthy is left for backward compatibility purposes, use `Severity` instead.
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
Healthy bool `json:"healthy"`
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
Warnings []string `json:"warnings"`
Expand Down
2 changes: 1 addition & 1 deletion coderd/healthcheck/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (

// @typescript-generate DatabaseReport
type DatabaseReport struct {
// Healthy is left for backward compatibility purposes, use `Severity` instead.
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
Healthy bool `json:"healthy"`
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
Warnings []string `json:"warnings"`
Expand Down
6 changes: 3 additions & 3 deletions coderd/healthcheck/derphealth/derp.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (

// @typescript-generate Report
type Report struct {
// Healthy is left for backward compatibility purposes, use `Severity` instead.
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
Healthy bool `json:"healthy"`
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
Warnings []string `json:"warnings"`
Expand All @@ -52,7 +52,7 @@ type Report struct {
type RegionReport struct {
mu sync.Mutex

// Healthy is left for backward compatibility purposes, use `Severity` instead.
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
Healthy bool `json:"healthy"`
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
Warnings []string `json:"warnings"`
Expand All @@ -67,7 +67,7 @@ type NodeReport struct {
mu sync.Mutex
clientCounter int

// Healthy is left for backward compatibility purposes, use `Severity` instead.
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
Healthy bool `json:"healthy"`
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
Warnings []string `json:"warnings"`
Expand Down
1 change: 1 addition & 0 deletions coderd/healthcheck/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type Report struct {
// Time is the time the report was generated at.
Time time.Time `json:"time"`
// Healthy is true if the report returns no errors.
// Deprecated: use `Severity` instead
Healthy bool `json:"healthy"`
// Severity indicates the status of Coder health.
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
Expand Down
2 changes: 1 addition & 1 deletion coderd/healthcheck/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type WebsocketReportOptions struct {

// @typescript-generate WebsocketReport
type WebsocketReport struct {
// Healthy is left for backward compatibility purposes, use `Severity` instead.
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
Healthy bool `json:"healthy"`
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
Warnings []string `json:"warnings"`
Expand Down
Loading