Table of Contents

Class MetricsSummary

Namespace
FishMMO.Database.Npgsql.Monitoring.Metrics
Assembly
FishMMO-DB.dll

Represents a summary of database operation metrics. Provides statistical information about query performance and success rates. Immutable snapshot of metrics at a point in time.

public sealed class MetricsSummary
Inheritance
MetricsSummary
Inherited Members

Constructors

MetricsSummary()

Initializes a new instance of the MetricsSummary class.

public MetricsSummary()

Properties

AverageResponseTimeMs

Gets or sets the average response time in milliseconds.

public double AverageResponseTimeMs { get; set; }

Property Value

double

ErrorCounts

Gets or sets a dictionary containing error counts by error type.

public Dictionary<string, long> ErrorCounts { get; set; }

Property Value

Dictionary<string, long>

FailedQueries

Gets or sets the number of failed database queries.

public long FailedQueries { get; set; }

Property Value

long

MaxResponseTimeMs

Gets or sets the maximum response time in milliseconds.

public double MaxResponseTimeMs { get; set; }

Property Value

double

MinResponseTimeMs

Gets or sets the minimum response time in milliseconds.

public double MinResponseTimeMs { get; set; }

Property Value

double

SuccessRate

Gets or sets the success rate as a percentage (0-100).

public double SuccessRate { get; set; }

Property Value

double

SuccessfulQueries

Gets or sets the number of successful database queries.

public long SuccessfulQueries { get; set; }

Property Value

long

TotalQueries

Gets or sets the total number of database queries executed.

public long TotalQueries { get; set; }

Property Value

long

Methods

ToString()

Returns a string representation of the metrics summary.

public override string ToString()

Returns

string

A formatted string containing the key metrics information.