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