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

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 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 } 

59 

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 

84 

85 @property 

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

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

88 

89 

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

91 """ 

92 return self._distinct_ip 

93 

94 @distinct_ip.setter 

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

96 """Sets the distinct_ip of this WebhookVelocity. 

97 

98 

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

100 """ 

101 

102 self._distinct_ip = distinct_ip 

103 

104 @property 

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

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

107 

108 

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

110 """ 

111 return self._distinct_linked_id 

112 

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. 

116 

117 

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

119 """ 

120 

121 self._distinct_linked_id = distinct_linked_id 

122 

123 @property 

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

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

126 

127 

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

129 """ 

130 return self._distinct_country 

131 

132 @distinct_country.setter 

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

134 """Sets the distinct_country of this WebhookVelocity. 

135 

136 

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

138 """ 

139 

140 self._distinct_country = distinct_country 

141 

142 @property 

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

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

145 

146 

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

148 """ 

149 return self._events 

150 

151 @events.setter 

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

153 """Sets the events of this WebhookVelocity. 

154 

155 

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

157 """ 

158 

159 self._events = events 

160 

161 @property 

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

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

164 

165 

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

167 """ 

168 return self._ip_events 

169 

170 @ip_events.setter 

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

172 """Sets the ip_events of this WebhookVelocity. 

173 

174 

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

176 """ 

177 

178 self._ip_events = ip_events 

179 

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 

183 

184 

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

186 """ 

187 return self._distinct_ip_by_linked_id 

188 

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. 

192 

193 

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

195 """ 

196 

197 self._distinct_ip_by_linked_id = distinct_ip_by_linked_id 

198 

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 

202 

203 

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

205 """ 

206 return self._distinct_visitor_id_by_linked_id 

207 

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. 

211 

212 

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

214 """ 

215 

216 self._distinct_visitor_id_by_linked_id = distinct_visitor_id_by_linked_id 

217