Class SlowQueryEvent
Published when a query exceeds the configured slow-query threshold.
public record SlowQueryEvent : IEvent, IEquatable<SlowQueryEvent>
- Inheritance
-
SlowQueryEvent
- Implements
-
IEvent
- Inherited Members
Constructors
SlowQueryEvent(string, string, long, DateTime, string?)
Published when a query exceeds the configured slow-query threshold.
public SlowQueryEvent(string ConnectionId, string Query, long ElapsedMs, DateTime DetectedAt, string? ExplainJson = null)
Parameters
Properties
ConnectionId
public string ConnectionId { get; init; }
Property Value
DetectedAt
public DateTime DetectedAt { get; init; }
Property Value
ElapsedMs
public long ElapsedMs { get; init; }
Property Value
ExplainJson
public string? ExplainJson { get; init; }
Property Value
Query
public string Query { get; init; }