Table of Contents

Class SlowQueryEventArgs

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

Event arguments for slow query detection.

public sealed class SlowQueryEventArgs : EventArgs
Inheritance
SlowQueryEventArgs
Inherited Members

Constructors

SlowQueryEventArgs(string, TimeSpan, double, bool, DateTime)

Initializes a new instance of the SlowQueryEventArgs class.

public SlowQueryEventArgs(string operationName, TimeSpan duration, double thresholdMs, bool success, DateTime timestamp)

Parameters

operationName string
duration TimeSpan
thresholdMs double
success bool
timestamp DateTime

Properties

Duration

Gets the execution duration.

public TimeSpan Duration { get; }

Property Value

TimeSpan

DurationMs

Gets the execution duration in milliseconds.

public double DurationMs { get; }

Property Value

double

OperationName

Gets the operation name.

public string OperationName { get; }

Property Value

string

Success

Gets whether the query succeeded.

public bool Success { get; }

Property Value

bool

ThresholdMs

Gets the slow query threshold in milliseconds.

public double ThresholdMs { get; }

Property Value

double

Timestamp

Gets the timestamp when the slow query was detected.

public DateTime Timestamp { get; }

Property Value

DateTime