API update for new alert system

This is reliant on @f0o's alert system in pr #366