Documentation
¶
Index ¶
- func CountDeniesWithinWindow(denyTimes []time.Time, since time.Time) int
- func FilterDeniesWithinWindow(denyTimes []time.Time, since time.Time) []time.Time
- func ShouldCreateAlertEvent(denyCount int, cfg DenySpikeConfig, existingInWindow bool) bool
- func ShouldFireDenySpike(denyCount int, cfg DenySpikeConfig) bool
- type DenySpikeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountDeniesWithinWindow ¶
func ShouldCreateAlertEvent ¶
func ShouldCreateAlertEvent(denyCount int, cfg DenySpikeConfig, existingInWindow bool) bool
func ShouldFireDenySpike ¶
func ShouldFireDenySpike(denyCount int, cfg DenySpikeConfig) bool
Types ¶
type DenySpikeConfig ¶
func ParseDenySpikeConfig ¶
func ParseDenySpikeConfig(raw json.RawMessage) (DenySpikeConfig, error)
Click to show internal directories.
Click to hide internal directories.