def send_api_fault(url, status, exception):
 if (not CONF.notify_api_faults):
  return
 payload = {'url': url, 'exception': str(exception), 'status': status}
 publisher_id = notifier_api.publisher_id('api')
 notifier_api.notify(None, publisher_id, 'api.fault', notifier_api.ERROR, payload)

def send_api_fault ( url , status , exception ) : if ( not CONF . notify_api_faults ) : return payload = { 'url' : url , 'exception' : str ( exception ) , 'status' : status } publisher_id = notifier_api . publisher_id ( 'api' ) notifier_api . notify ( None , publisher_id , 'api.fault' , notifier_api . ERROR , payload )
send an api .