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