Class PoolHealthResult
- Namespace
- FishMMO.Database.Npgsql.Monitoring.Health
- Assembly
- FishMMO-DB.dll
Contains the result of a connection pool health assessment. Provides detailed information about pool utilization, exhaustion events, and recommended actions.
public sealed class PoolHealthResult
- Inheritance
-
PoolHealthResult
- Inherited Members
Constructors
PoolHealthResult()
Initializes a new instance of the PoolHealthResult class with default values.
public PoolHealthResult()
Properties
ActiveConnections
Gets or sets the number of active connections.
public long ActiveConnections { get; set; }
Property Value
ConnectionErrors
Gets or sets the total number of connection errors.
public long ConnectionErrors { get; set; }
Property Value
MaxPoolSize
Gets or sets the maximum pool size.
public int MaxPoolSize { get; set; }
Property Value
Message
Gets or sets a human-readable message describing the pool health status.
public string Message { get; set; }
Property Value
PeakActiveConnections
Gets or sets the peak active connections count.
public long PeakActiveConnections { get; set; }
Property Value
PoolExhaustionCount
Gets or sets the total number of pool exhaustion events.
public long PoolExhaustionCount { get; set; }
Property Value
RecommendedAction
Gets or sets recommended action to take based on the pool health status.
public string RecommendedAction { get; set; }
Property Value
RequiresAction
Gets or sets whether immediate action is recommended.
public bool RequiresAction { get; set; }
Property Value
Status
Gets or sets the overall health status of the connection pool.
public PoolHealthStatus Status { get; set; }
Property Value
UtilizationPercent
Gets or sets the current pool utilization percentage (0-100).
public double UtilizationPercent { get; set; }
Property Value
Methods
ToString()
Returns a string representation of the pool health result.
public override string ToString()
Returns
- string
A formatted string containing the key pool health information.