From 2b2c8114ee94b76553f88032bb826c95f277be2c Mon Sep 17 00:00:00 2001 From: Jack-Keene Date: Thu, 22 Aug 2024 16:18:04 +0100 Subject: [PATCH] u --- snowplow_tracker/emitters.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snowplow_tracker/emitters.py b/snowplow_tracker/emitters.py index 8b04e821..8903a291 100644 --- a/snowplow_tracker/emitters.py +++ b/snowplow_tracker/emitters.py @@ -466,14 +466,14 @@ def __init__( :type batch_size: int | None :param on_success: Callback executed after every HTTP request in a flush has status code 200 Gets passed one argument: - 1) If method is "post": The sent data in string form; - If method is "get": An array of dictionaries corresponding to the sent events' payloads + 1a) If method is "get": The sent data in string form; + 1b) If method is "post": An array of dictionaries corresponding to the sent events' payloads :type on_success: function | None :param on_failure: Callback executed if at least one HTTP request in a flush has status code other than 200 Gets passed two arguments: 1) The number of events which were successfully sent - 2) If method is "post": The unsent data in string form; - If method is "get": An array of dictionaries corresponding to the unsent events' payloads + 2a) If method is "get": The unsent data in string form; + 2b) If method is "post": An array of dictionaries corresponding to the unsent events' payloads :type on_failure: function | None :param thread_count: Number of worker threads to use for HTTP requests :type thread_count: int