Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ docs/RuleActionType.md
docs/SDK.md
docs/SealedResults.md
docs/SearchEventsBot.md
docs/SearchEventsEndParameter.md
docs/SearchEventsIncrementalIdentificationStatus.md
docs/SearchEventsRareDevicePercentileBucket.md
docs/SearchEventsSdkPlatform.md
docs/SearchEventsStartParameter.md
docs/SearchEventsVpnConfidence.md
docs/SupplementaryIDHighRecall.md
docs/TamperingConfidence.md
Expand Down Expand Up @@ -100,9 +102,11 @@ fingerprint_server_sdk/models/rule_action_header_field.py
fingerprint_server_sdk/models/rule_action_type.py
fingerprint_server_sdk/models/sdk.py
fingerprint_server_sdk/models/search_events_bot.py
fingerprint_server_sdk/models/search_events_end_parameter.py
fingerprint_server_sdk/models/search_events_incremental_identification_status.py
fingerprint_server_sdk/models/search_events_rare_device_percentile_bucket.py
fingerprint_server_sdk/models/search_events_sdk_platform.py
fingerprint_server_sdk/models/search_events_start_parameter.py
fingerprint_server_sdk/models/search_events_vpn_confidence.py
fingerprint_server_sdk/models/supplementary_id_high_recall.py
fingerprint_server_sdk/models/tampering_confidence.py
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,11 @@ Class | Method | HTTP request | Description
- [RuleActionType](docs/RuleActionType.md)
- [SDK](docs/SDK.md)
- [SearchEventsBot](docs/SearchEventsBot.md)
- [SearchEventsEndParameter](docs/SearchEventsEndParameter.md)
- [SearchEventsIncrementalIdentificationStatus](docs/SearchEventsIncrementalIdentificationStatus.md)
- [SearchEventsRareDevicePercentileBucket](docs/SearchEventsRareDevicePercentileBucket.md)
- [SearchEventsSdkPlatform](docs/SearchEventsSdkPlatform.md)
- [SearchEventsStartParameter](docs/SearchEventsStartParameter.md)
- [SearchEventsVpnConfidence](docs/SearchEventsVpnConfidence.md)
- [SupplementaryIDHighRecall](docs/SupplementaryIDHighRecall.md)
- [TamperingConfidence](docs/TamperingConfidence.md)
Expand Down
8 changes: 4 additions & 4 deletions docs/FingerprintApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ url: str = 'url_example' # Filter events by the URL (`url` property) associated
bundle_id: str = 'bundle_id_example' # Filter events by the Bundle ID (iOS) associated with the event. (optional)
package_name: str = 'package_name_example' # Filter events by the Package Name (Android) associated with the event. (optional)
origin: str = 'origin_example' # Filter events by the origin field of the event. This is applicable to web events only (e.g., https://example.com) (optional)
start: int = 1767225600000 # Include events that happened after this point (with timestamp greater than or equal the provided `start` Unix milliseconds value). Defaults to 7 days ago. Setting `start` does not change `end`'s default of `now` — adjust it separately if needed. (optional)
end: int = 1769903999000 # Include events that happened before this point (with timestamp less than or equal the provided `end` Unix milliseconds value). Defaults to now. Setting `end` does not change `start`'s default of `7 days ago` — adjust it separately if needed. (optional)
start: SearchEventsStartParameter = fingerprint_server_sdk.SearchEventsStartParameter() # Include events that happened after this point (with timestamp greater than or equal the provided `start` Unix milliseconds value or RFC3339 timestamp). Defaults to 7 days ago. Setting `start` does not change `end`'s default of `now` — adjust it separately if needed. (optional)
end: SearchEventsEndParameter = fingerprint_server_sdk.SearchEventsEndParameter() # Include events that happened before this point (with timestamp less than or equal the provided `end` Unix milliseconds value or RFC3339 timestamp). Defaults to now. Setting `end` does not change `start`'s default of `7 days ago` — adjust it separately if needed. (optional)
reverse: bool = True # When `true`, sort events oldest first (ascending timestamp order). Default is newest first (descending timestamp order). (optional)
suspect: bool = True # Filter events previously tagged as suspicious via the [Update API](https://docs.fingerprint.com/reference/server-api-v4-update-event). > Note: When using this parameter, only events with the `suspect` property explicitly set to `true` or `false` are returned. Events with undefined `suspect` property are left out of the response. (optional)
vpn: bool = True # Filter events by VPN Detection result. > Note: When using this parameter, only events with the `vpn` property set to `true` or `false` are returned. Events without a `vpn` Smart Signal result are left out of the response. (optional)
Expand Down Expand Up @@ -318,8 +318,8 @@ Name | Type | Description | Notes
**bundle_id** | **str**| Filter events by the Bundle ID (iOS) associated with the event. | [optional]
**package_name** | **str**| Filter events by the Package Name (Android) associated with the event. | [optional]
**origin** | **str**| Filter events by the origin field of the event. This is applicable to web events only (e.g., https://example.com) | [optional]
**start** | **int**| Include events that happened after this point (with timestamp greater than or equal the provided `start` Unix milliseconds value). Defaults to 7 days ago. Setting `start` does not change `end`'s default of `now` — adjust it separately if needed. | [optional]
**end** | **int**| Include events that happened before this point (with timestamp less than or equal the provided `end` Unix milliseconds value). Defaults to now. Setting `end` does not change `start`'s default of `7 days ago` — adjust it separately if needed. | [optional]
**start** | [**SearchEventsStartParameter**](.md)| Include events that happened after this point (with timestamp greater than or equal the provided `start` Unix milliseconds value or RFC3339 timestamp). Defaults to 7 days ago. Setting `start` does not change `end`'s default of `now` — adjust it separately if needed. | [optional]
**end** | [**SearchEventsEndParameter**](.md)| Include events that happened before this point (with timestamp less than or equal the provided `end` Unix milliseconds value or RFC3339 timestamp). Defaults to now. Setting `end` does not change `start`'s default of `7 days ago` — adjust it separately if needed. | [optional]
**reverse** | **bool**| When `true`, sort events oldest first (ascending timestamp order). Default is newest first (descending timestamp order). | [optional]
**suspect** | **bool**| Filter events previously tagged as suspicious via the [Update API](https://docs.fingerprint.com/reference/server-api-v4-update-event). > Note: When using this parameter, only events with the `suspect` property explicitly set to `true` or `false` are returned. Events with undefined `suspect` property are left out of the response. | [optional]
**vpn** | **bool**| Filter events by VPN Detection result. > Note: When using this parameter, only events with the `vpn` property set to `true` or `false` are returned. Events without a `vpn` Smart Signal result are left out of the response. | [optional]
Expand Down
7 changes: 7 additions & 0 deletions docs/SearchEventsEndParameter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SearchEventsEndParameter
## Type alias

`Union[datetime,int]`

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

7 changes: 7 additions & 0 deletions docs/SearchEventsStartParameter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SearchEventsStartParameter
## Type alias

`Union[datetime,int]`

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

8 changes: 3 additions & 5 deletions examples/search_events_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@

end = datetime.now(tz=timezone.utc)
start = end - timedelta(days=7)
start_timestamp = int(start.timestamp() * 1000)
end_timestamp = int(end.timestamp() * 1000)

try:
response = api_instance.search_events(limit=10, start=start_timestamp, end=end_timestamp)
response = api_instance.search_events(limit=10, start=start, end=end)

print(f'Found {len(response.events)} events')
for event in response.events:
Expand All @@ -35,8 +33,8 @@
print(f'Fetching next page with pagination_key: {response.pagination_key}')
next_page = api_instance.search_events(
limit=10,
start=start_timestamp,
end=end_timestamp,
start=start,
end=end,
pagination_key=response.pagination_key,
)
print(f'Found {len(next_page.events)} more events on next page')
Expand Down
4 changes: 4 additions & 0 deletions fingerprint_server_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@
'RuleActionType',
'SDK',
'SearchEventsBot',
'SearchEventsEndParameter',
'SearchEventsIncrementalIdentificationStatus',
'SearchEventsRareDevicePercentileBucket',
'SearchEventsSdkPlatform',
'SearchEventsStartParameter',
'SearchEventsVpnConfidence',
'SupplementaryIDHighRecall',
'TamperingConfidence',
Expand Down Expand Up @@ -160,13 +162,15 @@
from fingerprint_server_sdk.models.rule_action_type import RuleActionType
from fingerprint_server_sdk.models.sdk import SDK
from fingerprint_server_sdk.models.search_events_bot import SearchEventsBot
from fingerprint_server_sdk.models.search_events_end_parameter import SearchEventsEndParameter
from fingerprint_server_sdk.models.search_events_incremental_identification_status import (
SearchEventsIncrementalIdentificationStatus,
)
from fingerprint_server_sdk.models.search_events_rare_device_percentile_bucket import (
SearchEventsRareDevicePercentileBucket,
)
from fingerprint_server_sdk.models.search_events_sdk_platform import SearchEventsSdkPlatform
from fingerprint_server_sdk.models.search_events_start_parameter import SearchEventsStartParameter
from fingerprint_server_sdk.models.search_events_vpn_confidence import SearchEventsVpnConfidence
from fingerprint_server_sdk.models.supplementary_id_high_recall import SupplementaryIDHighRecall
from fingerprint_server_sdk.models.tampering_confidence import TamperingConfidence
Expand Down
Loading
Loading