Added logic to discard Canceled and Completed events from alerts