class_docstr: TeamsOutput handles all alert dispatching for Microsoft Teams
class_docstr_tok: ["TeamsOutput","handles","all","alert","dispatching","for","Microsoft","Teams"]
docstr: Generate the alert section
  
  Args:
      alert (Alert): The alert
  
  Returns:
      alert_section (pymsteams.cardsection): alert section for the outgoing card
docstr_tok: ["Generate","the","alert","section","Args",":","alert","(","Alert",")",":","The","alert","Returns",":","alert_section","(","pymsteams.cardsection",")",":","alert","section","for","the","outgoing","card"]
code: def _generate_alert_section(cls, alert):
      """Generate the alert section
  
      Args:
          alert (Alert): The alert
  
      Returns:
          alert_section (pymsteams.cardsection): alert section for the outgoing card
      """
  
      # Instantiate the card
      alert_section = pymsteams.cardsection()
  
      # Set the title
      alert_section.activityTitle("Alert Info")
  
      # Add basic information to the alert section
      alert_section.addFact("rule_name", alert.rule_name)
      alert_section.addFact("alert_id", alert.alert_id)
  
      return alert_section
  
file_path: streamalert/streamalert/alert_processor/outputs/teams.py
imports: from collections import OrderedDict
  import pymsteams
  from pymsteams import TeamsWebhookException
  from streamalert.alert_processor.helpers import compose_alert
  from streamalert.alert_processor.outputs.output_base import OutputDispatcher, OutputProperty, StreamAlertOutput
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 4 for calling the TeamsOutput obj's underlying member method code with example usage: obj._generate_alert_section(cls, alert) and returns: alert_section