Skip to content

Commit 4340a63

Browse files
authored
Merge pull request #13 from Moesif/add-direction-field-to-event
Add: direction field to specify outgoing API call
2 parents 3533600 + 835c979 commit 4340a63

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

moesifpythonrequest/outgoing_recorder/outgoing_recorder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def prepare_model(self, mock_req, mock_res, event_model, start_time, end_time):
8383
'session_token': event_model['session_token'],
8484
'user_id': event_model['user_id'],
8585
'company_id': event_model['company_id'],
86-
'metadata': event_model['metadata']
86+
'metadata': event_model['metadata'],
87+
'direction': 'Outgoing'
8788
}
8889

8990
return mo_model

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
requests==2.20.0
2-
moesifapi==1.2.5
2+
moesifapi==1.3.1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Versions should comply with PEP440. For a discussion on single-sourcing
2929
# the version across setup.py and the project code, see
3030
# https://packaging.python.org/en/latest/single_source_version.html
31-
version='0.1.11',
31+
version='0.1.12',
3232

3333
description='Moesif Python request',
3434
long_description=long_description,

0 commit comments

Comments
 (0)