Skip to content

Commit b77763a

Browse files
committed
Deprecation notice
1 parent 8d32194 commit b77763a

File tree

8 files changed

+94
-93
lines changed

8 files changed

+94
-93
lines changed

coderd/apidoc/docs.go

Lines changed: 7 additions & 7 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: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/healthcheck/accessurl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
// @typescript-generate AccessURLReport
1717
type AccessURLReport struct {
18-
// Healthy is left for backward compatibility purposes, use `Severity` instead.
18+
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
1919
Healthy bool `json:"healthy"`
2020
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
2121
Warnings []string `json:"warnings"`

coderd/healthcheck/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const (
1717

1818
// @typescript-generate DatabaseReport
1919
type DatabaseReport struct {
20-
// Healthy is left for backward compatibility purposes, use `Severity` instead.
20+
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
2121
Healthy bool `json:"healthy"`
2222
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
2323
Warnings []string `json:"warnings"`

coderd/healthcheck/derphealth/derp.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const (
3434

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

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

70-
// Healthy is left for backward compatibility purposes, use `Severity` instead.
70+
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
7171
Healthy bool `json:"healthy"`
7272
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
7373
Warnings []string `json:"warnings"`

coderd/healthcheck/healthcheck.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type Report struct {
3131
// Time is the time the report was generated at.
3232
Time time.Time `json:"time"`
3333
// Healthy is true if the report returns no errors.
34+
// Deprecated: use `Severity` instead
3435
Healthy bool `json:"healthy"`
3536
// Severity indicates the status of Coder health.
3637
Severity health.Severity `json:"severity" enums:"ok,warning,error"`

coderd/healthcheck/websocket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type WebsocketReportOptions struct {
2323

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

0 commit comments

Comments
 (0)