File tree 9 files changed +45
-0
lines changed
9 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ def __init__(
16
16
) -> None :
17
17
super ().__init__ (app_id , api_key )
18
18
19
+ # In milliseconds
20
+ self .read_timeout = 5000
21
+ self .write_timeout = 30000
22
+ self .connect_timeout = 2000
23
+
19
24
self ._user_agent = UserAgent ()
20
25
self .add_user_agent ("Abtesting" , __version__ )
21
26
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ def __init__(
16
16
) -> None :
17
17
super ().__init__ (app_id , api_key )
18
18
19
+ # In milliseconds
20
+ self .read_timeout = 5000
21
+ self .write_timeout = 30000
22
+ self .connect_timeout = 2000
23
+
19
24
self ._user_agent = UserAgent ()
20
25
self .add_user_agent ("Analytics" , __version__ )
21
26
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ def __init__(
13
13
) -> None :
14
14
super ().__init__ (app_id , api_key )
15
15
16
+ # In milliseconds
17
+ self .read_timeout = 25000
18
+ self .write_timeout = 25000
19
+ self .connect_timeout = 25000
20
+
16
21
self ._user_agent = UserAgent ()
17
22
self .add_user_agent ("Ingestion" , __version__ )
18
23
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ def __init__(
16
16
) -> None :
17
17
super ().__init__ (app_id , api_key )
18
18
19
+ # In milliseconds
20
+ self .read_timeout = 5000
21
+ self .write_timeout = 30000
22
+ self .connect_timeout = 2000
23
+
19
24
self ._user_agent = UserAgent ()
20
25
self .add_user_agent ("Insights" , __version__ )
21
26
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ class MonitoringConfig(BaseConfig):
11
11
def __init__ (self , app_id : Optional [str ], api_key : Optional [str ]) -> None :
12
12
super ().__init__ (app_id , api_key )
13
13
14
+ # In milliseconds
15
+ self .read_timeout = 5000
16
+ self .write_timeout = 30000
17
+ self .connect_timeout = 2000
18
+
14
19
self ._user_agent = UserAgent ()
15
20
self .add_user_agent ("Monitoring" , __version__ )
16
21
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ def __init__(
13
13
) -> None :
14
14
super ().__init__ (app_id , api_key )
15
15
16
+ # In milliseconds
17
+ self .read_timeout = 5000
18
+ self .write_timeout = 30000
19
+ self .connect_timeout = 2000
20
+
16
21
self ._user_agent = UserAgent ()
17
22
self .add_user_agent ("Personalization" , __version__ )
18
23
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ def __init__(
13
13
) -> None :
14
14
super ().__init__ (app_id , api_key )
15
15
16
+ # In milliseconds
17
+ self .read_timeout = 5000
18
+ self .write_timeout = 30000
19
+ self .connect_timeout = 2000
20
+
16
21
self ._user_agent = UserAgent ()
17
22
self .add_user_agent ("QuerySuggestions" , __version__ )
18
23
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ class RecommendConfig(BaseConfig):
11
11
def __init__ (self , app_id : Optional [str ], api_key : Optional [str ]) -> None :
12
12
super ().__init__ (app_id , api_key )
13
13
14
+ # In milliseconds
15
+ self .read_timeout = 5000
16
+ self .write_timeout = 30000
17
+ self .connect_timeout = 2000
18
+
14
19
self ._user_agent = UserAgent ()
15
20
self .add_user_agent ("Recommend" , __version__ )
16
21
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ class SearchConfig(BaseConfig):
11
11
def __init__ (self , app_id : Optional [str ], api_key : Optional [str ]) -> None :
12
12
super ().__init__ (app_id , api_key )
13
13
14
+ # In milliseconds
15
+ self .read_timeout = 5000
16
+ self .write_timeout = 30000
17
+ self .connect_timeout = 2000
18
+
14
19
self ._user_agent = UserAgent ()
15
20
self .add_user_agent ("Search" , __version__ )
16
21
You can’t perform that action at this time.
0 commit comments