Table of Contents

Class HealthCheckerFactory

Namespace
AppHealthMonitor
Assembly
AppHealthMonitor.dll

Creates IHealthChecker instances for the specified port types. Returns an empty list when no port types are configured (process-only monitoring). Logs a warning when UDP is the only configured port type, as it provides no real health signal.

public static class HealthCheckerFactory
Inheritance
HealthCheckerFactory
Inherited Members

Methods

Create(IReadOnlyList<PortType>, AppConfig, IServerBoardService)

Creates a read-only list of health checkers corresponding to the given port types.

public static IReadOnlyList<IHealthChecker> Create(IReadOnlyList<PortType> portTypes, AppConfig config = null, IServerBoardService board = null)

Parameters

portTypes IReadOnlyList<PortType>

The port types to create checkers for. An empty list results in process-only monitoring.

config AppConfig

The application, for the pulse settings. A DatabasePulse check needs to know which server to look up, which the check list alone cannot say.

board IServerBoardService

The database read service, or null when no control plane is configured. A DatabasePulse check is skipped with a warning rather than failing the daemon: a deployment with no database still supervises, and refusing to start would turn a configuration mismatch into an outage.

Returns

IReadOnlyList<IHealthChecker>

A read-only list of health checker instances.

Exceptions

ArgumentNullException

Thrown when portTypes is null.