@@ -36,9 +36,10 @@ const (
36
36
// @typescript-generate Report
37
37
type Report struct {
38
38
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
39
- Healthy bool `json:"healthy"`
40
- Severity health.Severity `json:"severity" enums:"ok,warning,error"`
41
- Warnings []string `json:"warnings"`
39
+ Healthy bool `json:"healthy"`
40
+ Severity health.Severity `json:"severity" enums:"ok,warning,error"`
41
+ Warnings []string `json:"warnings"`
42
+ Dismissed bool `json:"dismissed`
42
43
43
44
Regions map [int ]* RegionReport `json:"regions"`
44
45
@@ -47,8 +48,6 @@ type Report struct {
47
48
NetcheckLogs []string `json:"netcheck_logs"`
48
49
49
50
Error * string `json:"error"`
50
-
51
- Dismissed bool `json:"dismissed`
52
51
}
53
52
54
53
// @typescript-generate RegionReport
@@ -105,9 +104,10 @@ type ReportOptions struct {
105
104
func (r * Report ) Run (ctx context.Context , opts * ReportOptions ) {
106
105
r .Healthy = true
107
106
r .Severity = health .SeverityOK
107
+ r .Warnings = []string {}
108
+ r .Dismissed = opts .Dismissed
108
109
109
110
r .Regions = map [int ]* RegionReport {}
110
- r .Warnings = []string {}
111
111
112
112
wg := & sync.WaitGroup {}
113
113
mu := sync.Mutex {}
0 commit comments