Table of Contents

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

long

ConnectionErrors

Gets or sets the total number of connection errors.

public long ConnectionErrors { get; set; }

Property Value

long

MaxPoolSize

Gets or sets the maximum pool size.

public int MaxPoolSize { get; set; }

Property Value

int

Message

Gets or sets a human-readable message describing the pool health status.

public string Message { get; set; }

Property Value

string

PeakActiveConnections

Gets or sets the peak active connections count.

public long PeakActiveConnections { get; set; }

Property Value

long

PoolExhaustionCount

Gets or sets the total number of pool exhaustion events.

public long PoolExhaustionCount { get; set; }

Property Value

long

RecommendedAction

Gets or sets recommended action to take based on the pool health status.

public string RecommendedAction { get; set; }

Property Value

string

RequiresAction

Gets or sets whether immediate action is recommended.

public bool RequiresAction { get; set; }

Property Value

bool

Status

Gets or sets the overall health status of the connection pool.

public PoolHealthStatus Status { get; set; }

Property Value

PoolHealthStatus

UtilizationPercent

Gets or sets the current pool utilization percentage (0-100).

public double UtilizationPercent { get; set; }

Property Value

double

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.