class_docstr: TeamsOutput handles all alert dispatching for Microsoft Teams
class_docstr_tok: ["TeamsOutput","handles","all","alert","dispatching","for","Microsoft","Teams"]
docstr: Generate the record section
  
  This adds the entire record to a section as key/value pairs
  
  Args:
      record (dict): The record that triggered the alert
  
  Returns:
      record_section (pymsteams.cardsection): record section for the outgoing card
docstr_tok: ["Generate","the","record","section","This","adds","the","entire","record","to","a","section","as","key\/value","pairs","Args",":","record","(","dict",")",":","The","record","that","triggered","the","alert","Returns",":","record_section","(","pymsteams.cardsection",")",":","record","section","for","the","outgoing","card"]
code: def _generate_record_section(cls, record):
      """Generate the record section
  
      This adds the entire record to a section as key/value pairs
  
      Args:
          record (dict): The record that triggered the alert
  
      Returns:
          record_section (pymsteams.cardsection): record section for the outgoing card
      """
      # Instantiate the card section
      record_section = pymsteams.cardsection()
  
      # Set the title
      record_section.activityTitle("StreamAlert Alert Record")
  
      # Add the record as key/value pairs
      for key, value in record.items():
          record_section.addFact(key, str(value))
  
      return record_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 3 for calling the TeamsOutput obj's underlying member method code with example usage: obj._generate_record_section(cls, record) and returns: record_section