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
Properties
Duration
Gets the execution duration.
public TimeSpan Duration { get; }
Property Value
DurationMs
Gets the execution duration in milliseconds.
public double DurationMs { get; }
Property Value
OperationName
Gets the operation name.
public string OperationName { get; }
Property Value
Success
Gets whether the query succeeded.
public bool Success { get; }
Property Value
ThresholdMs
Gets the slow query threshold in milliseconds.
public double ThresholdMs { get; }
Property Value
Timestamp
Gets the timestamp when the slow query was detected.
public DateTime Timestamp { get; }