code: def create_alert(self, alert):
  
          
  
          req = self.url + "/api/alert"
          data = alert.jsonify()
          try:
              return requests.post(req, headers={'Content-Type': 'application/json'}, data=data, proxies=self.proxies, auth=self.auth, verify=self.cert)
          except requests.exceptions.RequestException as e:
              raise AlertException("Alert create error: {}".format(e))
docs: :param alert: TheHive alert
          :type alert: Alert defined in models.py
          :return: TheHive alert
          :rtype: json