class_docstr: A list of alerts within a single merge window which match on their merge keys.
class_docstr_tok: ["A","list","of","alerts","within","a","single","merge","window","which","match","on","their","merge","keys","."]
docstr: Try adding an Alert to this merge group.
  
  Returns:
      True if the alert matches this group and was added, False otherwise.
docstr_tok: ["Try","adding","an","Alert","to","this","merge","group",".","Returns",":","True","if","the","alert","matches","this","group","and","was","added",",","False","otherwise","."]
code: def add(self, alert):
      """Try adding an Alert to this merge group.
  
      Returns:
          True if the alert matches this group and was added, False otherwise.
      """
      if len(self.alerts) >= self.MAX_ALERTS_PER_GROUP:
          return False
  
      if alert.can_merge(self.alerts[0]):
          self.alerts.append(alert)
          return True
      return False
  
file_path: streamalert/streamalert/alert_merger/main.py
imports: from datetime import datetime
  import json
  import os
  import boto3
  from streamalert.shared.alert import Alert, AlertCreationError
  from streamalert.shared.alert_table import AlertTable
  from streamalert.shared.logger import get_logger
  from streamalert.shared.metrics import ALERT_MERGER_NAME, MetricLogger
label_desc: Use image node_id 2 for calling the AlertMergeGroup obj's underlying member method code with example usage: obj.add(alert) and returns: False, False, True