Cyclium.Findings.FindingSweep (Cyclium v0.1.11)

Copy Markdown View Source

Periodic GenServer that maintains finding health: clears expired findings and escalates active findings based on time-based severity rules.

Configuration

config :cyclium, :finding_sweep, true
config :cyclium, :finding_sweep_interval_ms, :timer.minutes(5)
config :cyclium, :finding_sweep_batch_size, 100

Supervisor

Added automatically by Cyclium.Supervisor when enabled.

Summary

Functions

Returns a specification to start this module under a supervisor.

Escalate active findings based on configured time-based rules. Returns the count of escalated findings.

Clear expired findings. Returns the count of cleared findings.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

sweep_escalations()

Escalate active findings based on configured time-based rules. Returns the count of escalated findings.

sweep_expired(batch_size \\ batch_size())

Clear expired findings. Returns the count of cleared findings.