* alerts: handle min duration properly * add active * tests * cleanup test * update refs old-commit-hash: 07b971d4735d891cc59f404095812f5d001b3092