Table of Contents

Namespace FishMMO.Database.Npgsql.Monitoring.Health

Classes

DatabaseHealthMonitor

Monitors database health by performing connectivity checks and measuring response times. Thread-safe implementation suitable for Unity headless servers. Follows Single Responsibility Principle: solely responsible for database health monitoring. Follows Dependency Inversion Principle: depends on INpgsqlDbContextFactory abstraction.

DbContextFactoryHealthExtensions

Extension methods for deriving connection pool health from an INpgsqlDbContextFactory.

HealthCheckResult

Contains the result of a database health check operation. Provides detailed information about database connectivity, performance, and any errors encountered.

PoolHealthResult

Contains the result of a connection pool health assessment. Provides detailed information about pool utilization, exhaustion events, and recommended actions.

Enums

HealthStatus

Represents the health status of a database connection.

PoolHealthStatus

Represents the health status of the database connection pool.