Coverage for fingerprint_pro_server_api_sdk/models/webhook_velocity.py: 54%
79 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-09 17:50 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-09 17:50 +0000
1# coding: utf-8
3"""
4 Fingerprint Pro Server API
6 Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. # noqa: E501
8 OpenAPI spec version: 3
9 Contact: support@fingerprint.com
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
11"""
13import re # noqa: F401
14from typing import Dict, List, Optional # noqa: F401
15from fingerprint_pro_server_api_sdk.base_model import BaseModel
16from fingerprint_pro_server_api_sdk.models.velocity_data import VelocityData
17from fingerprint_pro_server_api_sdk.models.velocity_data import VelocityData
18from fingerprint_pro_server_api_sdk.models.velocity_data import VelocityData
19from fingerprint_pro_server_api_sdk.models.velocity_data import VelocityData
20from fingerprint_pro_server_api_sdk.models.velocity_data import VelocityData
21from fingerprint_pro_server_api_sdk.models.velocity_data import VelocityData
22from fingerprint_pro_server_api_sdk.models.velocity_data import VelocityData
25class WebhookVelocity(BaseModel):
26 """
27 Sums key data points for a specific `visitorId`, `ipAddress` and `linkedId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of distinct IP addresses associated to the visitor ID. - Number of distinct linked IDs associated with the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of identification events associated with the visitor ID. - Number of identification events associated with the detected IP address. - Number of distinct IP addresses associated with the provided linked ID. - Number of distinct visitor IDs associated with the provided linked ID. The `24h` interval of `distinctIp`, `distinctLinkedId`, `distinctCountry`, `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be omitted if the number of `events` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000.
29 NOTE: This class is auto generated by the swagger code generator program.
31 Do not edit the class manually.
32 """
33 """
34 Attributes:
35 swagger_types (dict): The key is attribute name
36 and the value is attribute type.
37 attribute_map (dict): The key is attribute name
38 and the value is json key in definition.
39 """
40 swagger_types = {
41 'distinct_ip': 'VelocityData',
42 'distinct_linked_id': 'VelocityData',
43 'distinct_country': 'VelocityData',
44 'events': 'VelocityData',
45 'ip_events': 'VelocityData',
46 'distinct_ip_by_linked_id': 'VelocityData',
47 'distinct_visitor_id_by_linked_id': 'VelocityData'
48 }
50 attribute_map = {
51 'distinct_ip': 'distinctIp',
52 'distinct_linked_id': 'distinctLinkedId',
53 'distinct_country': 'distinctCountry',
54 'events': 'events',
55 'ip_events': 'ipEvents',
56 'distinct_ip_by_linked_id': 'distinctIpByLinkedId',
57 'distinct_visitor_id_by_linked_id': 'distinctVisitorIdByLinkedId'
58 }
60 def __init__(self, distinct_ip=None, distinct_linked_id=None, distinct_country=None, events=None, ip_events=None, distinct_ip_by_linked_id=None, distinct_visitor_id_by_linked_id=None): # noqa: E501
61 """WebhookVelocity - a model defined in Swagger""" # noqa: E501
62 self._distinct_ip = None
63 self._distinct_linked_id = None
64 self._distinct_country = None
65 self._events = None
66 self._ip_events = None
67 self._distinct_ip_by_linked_id = None
68 self._distinct_visitor_id_by_linked_id = None
69 self.discriminator = None
70 if distinct_ip is not None:
71 self.distinct_ip = distinct_ip
72 if distinct_linked_id is not None:
73 self.distinct_linked_id = distinct_linked_id
74 if distinct_country is not None:
75 self.distinct_country = distinct_country
76 if events is not None:
77 self.events = events
78 if ip_events is not None:
79 self.ip_events = ip_events
80 if distinct_ip_by_linked_id is not None:
81 self.distinct_ip_by_linked_id = distinct_ip_by_linked_id
82 if distinct_visitor_id_by_linked_id is not None:
83 self.distinct_visitor_id_by_linked_id = distinct_visitor_id_by_linked_id
85 @property
86 def distinct_ip(self) -> Optional[VelocityData]:
87 """Gets the distinct_ip of this WebhookVelocity. # noqa: E501
90 :return: The distinct_ip of this WebhookVelocity. # noqa: E501
91 """
92 return self._distinct_ip
94 @distinct_ip.setter
95 def distinct_ip(self, distinct_ip: Optional[VelocityData]):
96 """Sets the distinct_ip of this WebhookVelocity.
99 :param distinct_ip: The distinct_ip of this WebhookVelocity. # noqa: E501
100 """
102 self._distinct_ip = distinct_ip
104 @property
105 def distinct_linked_id(self) -> Optional[VelocityData]:
106 """Gets the distinct_linked_id of this WebhookVelocity. # noqa: E501
109 :return: The distinct_linked_id of this WebhookVelocity. # noqa: E501
110 """
111 return self._distinct_linked_id
113 @distinct_linked_id.setter
114 def distinct_linked_id(self, distinct_linked_id: Optional[VelocityData]):
115 """Sets the distinct_linked_id of this WebhookVelocity.
118 :param distinct_linked_id: The distinct_linked_id of this WebhookVelocity. # noqa: E501
119 """
121 self._distinct_linked_id = distinct_linked_id
123 @property
124 def distinct_country(self) -> Optional[VelocityData]:
125 """Gets the distinct_country of this WebhookVelocity. # noqa: E501
128 :return: The distinct_country of this WebhookVelocity. # noqa: E501
129 """
130 return self._distinct_country
132 @distinct_country.setter
133 def distinct_country(self, distinct_country: Optional[VelocityData]):
134 """Sets the distinct_country of this WebhookVelocity.
137 :param distinct_country: The distinct_country of this WebhookVelocity. # noqa: E501
138 """
140 self._distinct_country = distinct_country
142 @property
143 def events(self) -> Optional[VelocityData]:
144 """Gets the events of this WebhookVelocity. # noqa: E501
147 :return: The events of this WebhookVelocity. # noqa: E501
148 """
149 return self._events
151 @events.setter
152 def events(self, events: Optional[VelocityData]):
153 """Sets the events of this WebhookVelocity.
156 :param events: The events of this WebhookVelocity. # noqa: E501
157 """
159 self._events = events
161 @property
162 def ip_events(self) -> Optional[VelocityData]:
163 """Gets the ip_events of this WebhookVelocity. # noqa: E501
166 :return: The ip_events of this WebhookVelocity. # noqa: E501
167 """
168 return self._ip_events
170 @ip_events.setter
171 def ip_events(self, ip_events: Optional[VelocityData]):
172 """Sets the ip_events of this WebhookVelocity.
175 :param ip_events: The ip_events of this WebhookVelocity. # noqa: E501
176 """
178 self._ip_events = ip_events
180 @property
181 def distinct_ip_by_linked_id(self) -> Optional[VelocityData]:
182 """Gets the distinct_ip_by_linked_id of this WebhookVelocity. # noqa: E501
185 :return: The distinct_ip_by_linked_id of this WebhookVelocity. # noqa: E501
186 """
187 return self._distinct_ip_by_linked_id
189 @distinct_ip_by_linked_id.setter
190 def distinct_ip_by_linked_id(self, distinct_ip_by_linked_id: Optional[VelocityData]):
191 """Sets the distinct_ip_by_linked_id of this WebhookVelocity.
194 :param distinct_ip_by_linked_id: The distinct_ip_by_linked_id of this WebhookVelocity. # noqa: E501
195 """
197 self._distinct_ip_by_linked_id = distinct_ip_by_linked_id
199 @property
200 def distinct_visitor_id_by_linked_id(self) -> Optional[VelocityData]:
201 """Gets the distinct_visitor_id_by_linked_id of this WebhookVelocity. # noqa: E501
204 :return: The distinct_visitor_id_by_linked_id of this WebhookVelocity. # noqa: E501
205 """
206 return self._distinct_visitor_id_by_linked_id
208 @distinct_visitor_id_by_linked_id.setter
209 def distinct_visitor_id_by_linked_id(self, distinct_visitor_id_by_linked_id: Optional[VelocityData]):
210 """Sets the distinct_visitor_id_by_linked_id of this WebhookVelocity.
213 :param distinct_visitor_id_by_linked_id: The distinct_visitor_id_by_linked_id of this WebhookVelocity. # noqa: E501
214 """
216 self._distinct_visitor_id_by_linked_id = distinct_visitor_id_by_linked_id