You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal code modifications to be compatible with openrpc spec:
- seperate the perf task getters to have a method for each task with a
defined result type instead of interface{}
- modify healthcheck task to have its result as slice of object
containes the check name instead of map from name to error
- modify public ip task to have its result as slice of reports with the
ip included instead of map from the ip to report
- update performance monitor stub
- modify the diagnositcs response to be slice of modules status instead
of map
Copy file name to clipboardExpand all lines: pkg/perf/healthcheck/healthcheck.go
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,13 @@ import (
9
9
10
10
"github.com/cenkalti/backoff"
11
11
"github.com/rs/zerolog/log"
12
+
"github.com/threefoldtech/zos/pkg"
12
13
"github.com/threefoldtech/zos/pkg/app"
13
14
"github.com/threefoldtech/zos/pkg/perf"
14
15
"github.com/threefoldtech/zos/pkg/stubs"
15
16
)
16
17
17
18
const (
18
-
id="healthcheck"
19
19
schedule="0 */15 * * * *"
20
20
description="health check task runs multiple checks to ensure the node is in a usable state and set flags for the power daemon to stop reporting uptime if it is not usable"
21
21
)
@@ -41,7 +41,7 @@ var _ perf.Task = (*healthcheckTask)(nil)
0 commit comments