Health check system for ExUtcp components.
Monitors the health of transports, providers, and connections.
Summary
Functions
Returns a specification to start this module under a supervisor.
Gets the current health status.
Registers a custom health check.
Forces a health check run.
Starts the health check system.
Unregisters a health check.
Types
@type check_result() :: %{ name: String.t(), status: health_status(), message: String.t(), duration_ms: integer(), timestamp: integer() }
@type health_status() :: :healthy | :degraded | :unhealthy
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec get_health_status() :: map()
Gets the current health status.
@spec register_check(String.t(), (-> check_result())) :: :ok
Registers a custom health check.
@spec run_health_checks() :: map()
Forces a health check run.
Starts the health check system.
@spec unregister_check(String.t()) :: :ok
Unregisters a health check.