lib/alerts/alerts.js
function matchAndIssueAlertEmails(eventDetails, alerts){
  underscore.each(alerts, function(alert) {
    if (shouldTriggerAlert(eventDetails, alert)){
      issueAlertEmail(eventDetails, alert);
    }
  });
}
function matchAndIssueAlertEmails(eventDetails, alerts){
  underscore.each(alerts, function(alert) {
    if (shouldTriggerAlert(eventDetails, alert)){
      issueAlertEmail(eventDetails, alert);
    }
  });
}
function matchAndIssueAlertEmails ( eventDetails , alerts ) { underscore . each ( alerts , function ( alert ) { if ( shouldTriggerAlert ( eventDetails , alert ) ) { issueAlertEmail ( eventDetails , alert ) ; } } ) ; }
Iterate user defined alerts to incoming event message and send emails when appropriate
@param alerts
Iterate user defined alerts to incoming event message and send emails when appropriate