Class QueryExecutedEvent
Published after every query, fast or slow. Carries SQL text, elapsed ms, row count, cache hit flag, and the connection it ran on. Subscribe for dashboards / metrics / traces.
public record QueryExecutedEvent : IEvent, IEquatable<QueryExecutedEvent>
- Inheritance
-
QueryExecutedEvent
- Implements
-
IEvent
- Inherited Members
Constructors
QueryExecutedEvent(string, string, long, int, bool, DateTime)
Published after every query, fast or slow. Carries SQL text, elapsed ms, row count, cache hit flag, and the connection it ran on. Subscribe for dashboards / metrics / traces.
public QueryExecutedEvent(string ConnectionId, string Query, long ElapsedMs, int RowCount, bool CacheHit, DateTime CompletedAt)
Parameters
Properties
CacheHit
public bool CacheHit { get; init; }
Property Value
CompletedAt
public DateTime CompletedAt { get; init; }
Property Value
ConnectionId
public string ConnectionId { get; init; }
Property Value
ElapsedMs
public long ElapsedMs { get; init; }
Property Value
Query
public string Query { get; init; }
Property Value
RowCount
public int RowCount { get; init; }