harp_apps.notifications.subscriber

Inheritance diagram of harp_apps.notifications.subscriber

class NotificationSubscriber[source]

Bases: object

__init__(settings, public_url=None)[source]
Parameters:
async on_response_send_error_notifications(event)[source]
Parameters:

event (ResponseEvent)

async send_notification(method, url, status_code, message, transaction_id)[source]
Parameters:
  • method (str | None)

  • url (str | None)

  • status_code (int)

  • message (str)

  • transaction_id (str | None)

Return type:

None

subscribe(dispatcher)[source]
Parameters:

dispatcher (IAsyncEventDispatcher)

unsubscribe(dispatcher)[source]
Parameters:

dispatcher (IAsyncEventDispatcher)