Filter alert counts by duplicate removal and classify the resulting noise level.

alert noise Alert noise classification separates useful signals from duplicates before escalation.

Alert Noise Report

alert_count
alert_noise.lua
Replay: real traced execution (multi-file project)
local alert_count = 6
local duplicate_alerts = 2
local useful_alerts = alert_count - duplicate_alerts
local noise_label = "focused"

if useful_alerts <= 1 then
  noise_label = "review"
elseif alert_count >= 9 then
  noise_label = "noisy"
end

print("alerts=" .. alert_count .. " useful=" .. useful_alerts .. " label=" .. noise_label)
local alert_count = 3
local duplicate_alerts = 2
local useful_alerts = alert_count - duplicate_alerts
local noise_label = "focused"

if useful_alerts <= 1 then
  noise_label = "review"
elseif alert_count >= 9 then
  noise_label = "noisy"
end

print("alerts=" .. alert_count .. " useful=" .. useful_alerts .. " label=" .. noise_label)
local alert_count = 9
local duplicate_alerts = 2
local useful_alerts = alert_count - duplicate_alerts
local noise_label = "focused"

if useful_alerts <= 1 then
  noise_label = "review"
elseif alert_count >= 9 then
  noise_label = "noisy"
end

print("alerts=" .. alert_count .. " useful=" .. useful_alerts .. " label=" .. noise_label)
  1. alert_count ← 6, duplicate_alerts ← 2, useful_alerts ← 4, noise_label ← focused

    1local alert_count→ 6 = 6 --@alert_count=3, 92local duplicate_alerts→ 2 = 23local useful_alerts→ 4 = alert_count6 - duplicate_alerts24local noise_label→ focused = "focused"56if useful_alerts <= 1 then7  noise_label = "review"8elseif alert_count >= 9 then9  noise_label = "noisy"10end1112print("alerts=" .. alert_count6 .. " useful=" .. useful_alerts4 .. " label=" .. noise_labelfocused)
    outputalerts=6 useful=4 label=focused
  1. alert_count ← 3, duplicate_alerts ← 2, useful_alerts ← 1, noise_label ← focused

    1local alert_count→ 3 = 32local duplicate_alerts→ 2 = 23local useful_alerts→ 1 = alert_count3 - duplicate_alerts24local noise_label→ focused = "focused"
  2. noise_label ← review

    6if useful_alerts1 <= 1 then7  noise_label→ review = "review"8elseif alert_count >= 9 then
  3. print("alerts=" .. alert_count .. " useful=" .. useful_alerts .. " lab…

    12print("alerts=" .. alert_count3 .. " useful=" .. useful_alerts1 .. " label=" .. noise_labelreview)
    outputalerts=3 useful=1 label=review
  1. alert_count ← 9, duplicate_alerts ← 2, useful_alerts ← 7, noise_label ← focused

    1local alert_count→ 9 = 92local duplicate_alerts→ 2 = 23local useful_alerts→ 7 = alert_count9 - duplicate_alerts24local noise_label→ focused = "focused"
  2. noise_label ← noisy

    7  noise_label = "review"8elseif alert_count9 >= 9 then9  noise_label→ noisy = "noisy"10end
  3. print("alerts=" .. alert_count .. " useful=" .. useful_alerts .. " lab…

    12print("alerts=" .. alert_count9 .. " useful=" .. useful_alerts7 .. " label=" .. noise_labelnoisy)
    outputalerts=9 useful=7 label=noisy