Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector tracks query frequency and detects N+1 patterns.
type Result ¶
type Result struct {
// Matched is true when the query count is at or above the threshold
// within the time window. Use this to mark every event in the pattern.
Matched bool
// Alert is non-nil only when the threshold is first crossed (respecting
// cooldown). Use this to trigger a one-time notification.
Alert *Alert
}
Result holds the outcome of a Record call.
Click to show internal directories.
Click to hide internal directories.