Operational Diagnostics Reports
Alert Noise Report
Count Useful Signals
An alert diagnostic report can subtract duplicate alerts and label whether the remaining signal is focused, noisy, or needs review.
Program
Play the program to choose alert count and inspect the noise label.
alert_noise_report.f90
program alert_noise_report_demo
implicit none
integer :: alert_count
integer :: duplicate_count
integer :: useful_count
character(len=8) :: label
alert_count =
duplicate_count = 2
useful_count = alert_count - duplicate_count
if (useful_count >= 7) then
label = 'noisy'
else if (duplicate_count >= useful_count) then
label = 'review'
else
label = 'focused'
end if
print '(A, I0, 1X, A, I0, 1X, A)', 'alerts=', alert_count, 'useful=', useful_count, trim(label)
end program alert_noise_report_demo
program alert_noise_report_demo
implicit none
integer :: alert_count
integer :: duplicate_count
integer :: useful_count
character(len=8) :: label
alert_count =
duplicate_count = 2
useful_count = alert_count - duplicate_count
if (useful_count >= 7) then
label = 'noisy'
else if (duplicate_count >= useful_count) then
label = 'review'
else
label = 'focused'
end if
print '(A, I0, 1X, A, I0, 1X, A)', 'alerts=', alert_count, 'useful=', useful_count, trim(label)
end program alert_noise_report_demo
program alert_noise_report_demo
implicit none
integer :: alert_count
integer :: duplicate_count
integer :: useful_count
character(len=8) :: label
alert_count =
duplicate_count = 2
useful_count = alert_count - duplicate_count
if (useful_count >= 7) then
label = 'noisy'
else if (duplicate_count >= useful_count) then
label = 'review'
else
label = 'focused'
end if
print '(A, I0, 1X, A, I0, 1X, A)', 'alerts=', alert_count, 'useful=', useful_count, trim(label)
end program alert_noise_report_demo
duplicate count
The duplicate count is fixed so the selector only changes the incoming alert volume.
useful signal
`alert_count - duplicate_count` produces the diagnostic value for the report.
noise label
The final label separates focused, noisy, and review cases.