when there is an event, get the type (A) if there is a timestamp saved for A and if the timestamp is less than 1 hour old do nothing otherwise send an email about A and update the timestamp for A with the current time