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

Alert Noise Report

alert_noise.php
<?php
$alertCount = ;
$duplicateAlerts = 2;
$usefulAlerts = $alertCount - $duplicateAlerts;
$noiseLabel = "focused";

if ($usefulAlerts <= 1) {
    $noiseLabel = "review";
} elseif ($alertCount >= 9) {
    $noiseLabel = "noisy";
}

echo "alerts=" . $alertCount . " useful=" . $usefulAlerts . " label=" . $noiseLabel . "\n";
<?php
$alertCount = ;
$duplicateAlerts = 2;
$usefulAlerts = $alertCount - $duplicateAlerts;
$noiseLabel = "focused";

if ($usefulAlerts <= 1) {
    $noiseLabel = "review";
} elseif ($alertCount >= 9) {
    $noiseLabel = "noisy";
}

echo "alerts=" . $alertCount . " useful=" . $usefulAlerts . " label=" . $noiseLabel . "\n";
<?php
$alertCount = ;
$duplicateAlerts = 2;
$usefulAlerts = $alertCount - $duplicateAlerts;
$noiseLabel = "focused";

if ($usefulAlerts <= 1) {
    $noiseLabel = "review";
} elseif ($alertCount >= 9) {
    $noiseLabel = "noisy";
}

echo "alerts=" . $alertCount . " useful=" . $usefulAlerts . " label=" . $noiseLabel . "\n";
alert noise Alert noise classification separates useful signals from duplicates before escalation.