class_docstr: KomandOutput handles all alert dispatching for Komand
docstr: Send alert to Komand
  
  Publishing:
      By default this output sends the current publication to Komand.
      There is no "magic" field to "override" it: Simply publish what you want to send!
  
  Args:
      alert (Alert): Alert instance which triggered a rule
      descriptor (str): Output descriptor
  
  Returns:
      bool: True if alert was sent successfully, False otherwise
docstr_tok: ["Send","alert","to","Komand","Publishing",":","By","default","this","output","sends","the","current","publication","to","Komand",".","There","is","no","``","magic","''","field","to","``","override","''","it",":","Simply","publish","what","you","want","to","send","!","Args",":","alert","(","Alert",")",":","Alert","instance","which","triggered","a","rule","descriptor","(","str",")",":","Output","descriptor","Returns",":","bool",":","True","if","alert","was","sent","successfully",",","False","otherwise"]
code: def _dispatch(self, alert, descriptor):
      """Send alert to Komand
  
      Publishing:
          By default this output sends the current publication to Komand.
          There is no "magic" field to "override" it: Simply publish what you want to send!
  
      Args:
          alert (Alert): Alert instance which triggered a rule
          descriptor (str): Output descriptor
  
      Returns:
          bool: True if alert was sent successfully, False otherwise
      """
      creds = self._load_creds(descriptor)
      if not creds:
          return False
  
      headers = {"Authorization": creds["komand_auth_token"]}
  
      LOGGER.debug("sending alert to Komand")
  
      publication = compose_alert(alert, self, descriptor)
      resp = self._post_request(
          creds["url"], {"data": publication}, headers, False
      )
  
      return self._check_http_response(resp)
  
file_path: streamalert/streamalert/alert_processor/outputs/komand.py
imports: from collections import OrderedDict
  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 2 for calling the KomandOutput obj's underlying member method code with example usage: obj._dispatch(alert, descriptor) and returns: self, False