Coverage for fingerprint_pro_server_api_sdk/models/webhook_velocity.py: 55%

80 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-21 15:03 +0000

1# coding: utf-8 

2 

3""" 

4 Fingerprint Pro Server API 

5 

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 

7 

8 OpenAPI spec version: 3 

9 Contact: support@fingerprint.com 

10 Generated by: https://github.com/swagger-api/swagger-codegen.git 

11""" 

12 

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 

23 

24 

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.  

28 

29 NOTE: This class is auto generated by the swagger code generator program. 

30 

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 } 

49 

50 nullable_map = { 

51 'distinct_ip': False, 

52 'distinct_linked_id': False, 

53 'distinct_country': False, 

54 'events': False, 

55 'ip_events': False, 

56 'distinct_ip_by_linked_id': False, 

57 'distinct_visitor_id_by_linked_id': False 

58 } 

59 

60 attribute_map = { 

61 'distinct_ip': 'distinctIp', 

62 'distinct_linked_id': 'distinctLinkedId', 

63 'distinct_country': 'distinctCountry', 

64 'events': 'events', 

65 'ip_events': 'ipEvents', 

66 'distinct_ip_by_linked_id': 'distinctIpByLinkedId', 

67 'distinct_visitor_id_by_linked_id': 'distinctVisitorIdByLinkedId' 

68 } 

69 

70 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 

71 """WebhookVelocity - a model defined in Swagger""" # noqa: E501 

72 self._distinct_ip = None 

73 self._distinct_linked_id = None 

74 self._distinct_country = None 

75 self._events = None 

76 self._ip_events = None 

77 self._distinct_ip_by_linked_id = None 

78 self._distinct_visitor_id_by_linked_id = None 

79 self.discriminator = None 

80 if distinct_ip is not None: 

81 self.distinct_ip = distinct_ip 

82 if distinct_linked_id is not None: 

83 self.distinct_linked_id = distinct_linked_id 

84 if distinct_country is not None: 

85 self.distinct_country = distinct_country 

86 if events is not None: 

87 self.events = events 

88 if ip_events is not None: 

89 self.ip_events = ip_events 

90 if distinct_ip_by_linked_id is not None: 

91 self.distinct_ip_by_linked_id = distinct_ip_by_linked_id 

92 if distinct_visitor_id_by_linked_id is not None: 

93 self.distinct_visitor_id_by_linked_id = distinct_visitor_id_by_linked_id 

94 

95 @property 

96 def distinct_ip(self) -> Optional[VelocityData]: 

97 """Gets the distinct_ip of this WebhookVelocity. # noqa: E501 

98 

99 

100 :return: The distinct_ip of this WebhookVelocity. # noqa: E501 

101 """ 

102 return self._distinct_ip 

103 

104 @distinct_ip.setter 

105 def distinct_ip(self, distinct_ip: Optional[VelocityData]): 

106 """Sets the distinct_ip of this WebhookVelocity. 

107 

108 

109 :param distinct_ip: The distinct_ip of this WebhookVelocity. # noqa: E501 

110 """ 

111 

112 self._distinct_ip = distinct_ip 

113 

114 @property 

115 def distinct_linked_id(self) -> Optional[VelocityData]: 

116 """Gets the distinct_linked_id of this WebhookVelocity. # noqa: E501 

117 

118 

119 :return: The distinct_linked_id of this WebhookVelocity. # noqa: E501 

120 """ 

121 return self._distinct_linked_id 

122 

123 @distinct_linked_id.setter 

124 def distinct_linked_id(self, distinct_linked_id: Optional[VelocityData]): 

125 """Sets the distinct_linked_id of this WebhookVelocity. 

126 

127 

128 :param distinct_linked_id: The distinct_linked_id of this WebhookVelocity. # noqa: E501 

129 """ 

130 

131 self._distinct_linked_id = distinct_linked_id 

132 

133 @property 

134 def distinct_country(self) -> Optional[VelocityData]: 

135 """Gets the distinct_country of this WebhookVelocity. # noqa: E501 

136 

137 

138 :return: The distinct_country of this WebhookVelocity. # noqa: E501 

139 """ 

140 return self._distinct_country 

141 

142 @distinct_country.setter 

143 def distinct_country(self, distinct_country: Optional[VelocityData]): 

144 """Sets the distinct_country of this WebhookVelocity. 

145 

146 

147 :param distinct_country: The distinct_country of this WebhookVelocity. # noqa: E501 

148 """ 

149 

150 self._distinct_country = distinct_country 

151 

152 @property 

153 def events(self) -> Optional[VelocityData]: 

154 """Gets the events of this WebhookVelocity. # noqa: E501 

155 

156 

157 :return: The events of this WebhookVelocity. # noqa: E501 

158 """ 

159 return self._events 

160 

161 @events.setter 

162 def events(self, events: Optional[VelocityData]): 

163 """Sets the events of this WebhookVelocity. 

164 

165 

166 :param events: The events of this WebhookVelocity. # noqa: E501 

167 """ 

168 

169 self._events = events 

170 

171 @property 

172 def ip_events(self) -> Optional[VelocityData]: 

173 """Gets the ip_events of this WebhookVelocity. # noqa: E501 

174 

175 

176 :return: The ip_events of this WebhookVelocity. # noqa: E501 

177 """ 

178 return self._ip_events 

179 

180 @ip_events.setter 

181 def ip_events(self, ip_events: Optional[VelocityData]): 

182 """Sets the ip_events of this WebhookVelocity. 

183 

184 

185 :param ip_events: The ip_events of this WebhookVelocity. # noqa: E501 

186 """ 

187 

188 self._ip_events = ip_events 

189 

190 @property 

191 def distinct_ip_by_linked_id(self) -> Optional[VelocityData]: 

192 """Gets the distinct_ip_by_linked_id of this WebhookVelocity. # noqa: E501 

193 

194 

195 :return: The distinct_ip_by_linked_id of this WebhookVelocity. # noqa: E501 

196 """ 

197 return self._distinct_ip_by_linked_id 

198 

199 @distinct_ip_by_linked_id.setter 

200 def distinct_ip_by_linked_id(self, distinct_ip_by_linked_id: Optional[VelocityData]): 

201 """Sets the distinct_ip_by_linked_id of this WebhookVelocity. 

202 

203 

204 :param distinct_ip_by_linked_id: The distinct_ip_by_linked_id of this WebhookVelocity. # noqa: E501 

205 """ 

206 

207 self._distinct_ip_by_linked_id = distinct_ip_by_linked_id 

208 

209 @property 

210 def distinct_visitor_id_by_linked_id(self) -> Optional[VelocityData]: 

211 """Gets the distinct_visitor_id_by_linked_id of this WebhookVelocity. # noqa: E501 

212 

213 

214 :return: The distinct_visitor_id_by_linked_id of this WebhookVelocity. # noqa: E501 

215 """ 

216 return self._distinct_visitor_id_by_linked_id 

217 

218 @distinct_visitor_id_by_linked_id.setter 

219 def distinct_visitor_id_by_linked_id(self, distinct_visitor_id_by_linked_id: Optional[VelocityData]): 

220 """Sets the distinct_visitor_id_by_linked_id of this WebhookVelocity. 

221 

222 

223 :param distinct_visitor_id_by_linked_id: The distinct_visitor_id_by_linked_id of this WebhookVelocity. # noqa: E501 

224 """ 

225 

226 self._distinct_visitor_id_by_linked_id = distinct_visitor_id_by_linked_id 

227