MCPcopy Index your code
hub / github.com/coder/coder / shouldStartTicker

Function shouldStartTicker

agent/apphealth.go:167–169  ·  view source on GitHub ↗
(app codersdk.WorkspaceApp)

Source from the content-addressed store, hash-verified

165}
166
167func shouldStartTicker(app codersdk.WorkspaceApp) bool {
168 return app.Healthcheck.URL != "" && app.Healthcheck.Interval > 0 && app.Healthcheck.Threshold > 0
169}
170
171func healthChanged(old map[uuid.UUID]codersdk.WorkspaceAppHealth, updated map[uuid.UUID]codersdk.WorkspaceAppHealth) bool {
172 for name, newValue := range updated {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected