class_docstr: TeamsOutput handles all alert dispatching for Microsoft Teams
class_docstr_tok: ["TeamsOutput","handles","all","alert","dispatching","for","Microsoft","Teams"]
docstr: Add additional card sections to the teams card
  
  Args:
      teams_card (pymsteams.connectorcard): Teams connector card
      additional_sections (list[pymsteams.cardsection]):
          Additional sections to be added to the card. Each section should be of
          type: pymsteams.cardsection and have their relevant fields filled out.
          Please review the pymsteams documentation for additional information.
  
  Returns:
      teams_card (pymsteams.connectorcard): teams_card with additional sections added
docstr_tok: ["Add","additional","card","sections","to","the","teams","card","Args",":","teams_card","(","pymsteams.connectorcard",")",":","Teams","connector","card","additional_sections","(","list","[","pymsteams.cardsection","]",")",":","Additional","sections","to","be","added","to","the","card",".","Each","section","should","be","of","type",":","pymsteams.cardsection","and","have","their","relevant","fields","filled","out",".","Please","review","the","pymsteams","documentation","for","additional","information",".","Returns",":","teams_card","(","pymsteams.connectorcard",")",":","teams_card","with","additional","sections","added"]
code: def _add_additional_sections(teams_card, additional_sections):
      """Add additional card sections to the teams card
  
      Args:
          teams_card (pymsteams.connectorcard): Teams connector card
          additional_sections (list[pymsteams.cardsection]):
              Additional sections to be added to the card. Each section should be of
              type: pymsteams.cardsection and have their relevant fields filled out.
              Please review the pymsteams documentation for additional information.
  
      Returns:
          teams_card (pymsteams.connectorcard): teams_card with additional sections added
      """
      if not isinstance(additional_sections, list):
          LOGGER.debug("additional_sections is not a list, converting")
  
          additional_sections = [additional_sections]
  
      for additional_section in additional_sections:
          if not isinstance(additional_section, pymsteams.cardsection):
              LOGGER.error(
                  "additional_section: %s is not an instance of %s",
                  additional_section,
                  pymsteams.cardsection,
              )
              continue
  
          teams_card.addSection(additional_section)
  
      return teams_card
  
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 5 for calling the TeamsOutput obj's underlying member method code with example usage: obj._add_additional_sections(teams_card, additional_sections) and returns: teams_card