NewWorkspaceAppHealthReporter creates a WorkspaceAppHealthReporter that reports app health to coderd.
(logger slog.Logger, apps []codersdk.WorkspaceApp, postWorkspaceAgentAppHealth PostWorkspaceAgentAppHealth)
| 23 | |
| 24 | // NewWorkspaceAppHealthReporter creates a WorkspaceAppHealthReporter that reports app health to coderd. |
| 25 | func 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. |
no test coverage detected