AnomalyPolicy

data class AnomalyPolicy(val enabled: Boolean = false, val sensitivityLevel: SensitivityLevel = SensitivityLevel.MEDIUM, val flagThreshold: Float = 0.5f, val rejectThreshold: Float = 0.8f, val slidingWindowMinutes: Int = 5, val baselineEventCount: Int = 100)

Policy controlling anomaly detection behavior.

Since

0.5.0

Constructors

Link copied to clipboard
constructor(enabled: Boolean = false, sensitivityLevel: SensitivityLevel = SensitivityLevel.MEDIUM, flagThreshold: Float = 0.5f, rejectThreshold: Float = 0.8f, slidingWindowMinutes: Int = 5, baselineEventCount: Int = 100)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Number of events to observe before activating scoring. During the learning period all events return ALLOW. Use seedBaseline to skip the learning period entirely.

Link copied to clipboard

Whether anomaly detection is active.

Link copied to clipboard

Score threshold for flagging events.

Link copied to clipboard

Score threshold for rejecting events.

Link copied to clipboard

Detection sensitivity.

Link copied to clipboard

Window size for rate-based anomaly detection.