Maybe this is a bug, maybe the popup help is wrong:
when You define an alert rule, the popup help over “Max alerts” reads:
" (…) -1 means no limit. If Interval is 0, this has no effect."
From my understanding it means, if “Interval” is set to 0, the value of “Max alerts” is ignored. The rule in the above screenshot sends me alerts continuously on a one minute basis. If I set “Max alerts” to 1, the rule works as desired.
So either I got it all wrong or the documentation/popup help information is wrong or the values aren’t used as it is described.
Now, in the docs under https://docs.librenms.org/Alerting/Rules/#options the text omits the information with “interval is 0” and therefor seems much clearer. So I guess the code works as designed, but the information in the pop up is ambiguous? Or is it my non-native English?