use event to publish alert