Table of Contents

Class SlowQueryEvent

Namespace
CL.MySQL2.Events
Assembly
CL.MySQL2.dll

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

ConnectionId string
Query string
ElapsedMs long
DetectedAt DateTime
ExplainJson string

Properties

ConnectionId

public string ConnectionId { get; init; }

Property Value

string

DetectedAt

public DateTime DetectedAt { get; init; }

Property Value

DateTime

ElapsedMs

public long ElapsedMs { get; init; }

Property Value

long

ExplainJson

public string? ExplainJson { get; init; }

Property Value

string

Query

public string Query { get; init; }

Property Value

string