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

Function NewWorkspaceAppHealthReporter

agent/apphealth.go:25–27  ·  view source on GitHub ↗

NewWorkspaceAppHealthReporter creates a WorkspaceAppHealthReporter that reports app health to coderd.

(logger slog.Logger, apps []codersdk.WorkspaceApp, postWorkspaceAgentAppHealth PostWorkspaceAgentAppHealth)

Source from the content-addressed store, hash-verified

23
24// NewWorkspaceAppHealthReporter creates a WorkspaceAppHealthReporter that reports app health to coderd.
25func NewWorkspaceAppHealthReporter(logger slog.Logger, apps []codersdk.WorkspaceApp, postWorkspaceAgentAppHealth PostWorkspaceAgentAppHealth) WorkspaceAppHealthReporter {
26 return NewAppHealthReporterWithClock(logger, apps, postWorkspaceAgentAppHealth, quartz.NewReal())
27}
28
29// NewAppHealthReporterWithClock is only called directly by test code. Product code should call
30// NewAppHealthReporter.

Callers 1

runMethod · 0.85

Calls 1

Tested by

no test coverage detected