Coverage for fingerprint_pro_server_api_sdk/models/velocity_intervals.py: 95%
39 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +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
18class VelocityIntervals(BaseModel):
19 """
20 Is absent if the velocity data could not be generated for the visitor ID.
22 NOTE: This class is auto generated by the swagger code generator program.
24 Do not edit the class manually.
25 """
26 """
27 Attributes:
28 swagger_types (dict): The key is attribute name
29 and the value is attribute type.
30 attribute_map (dict): The key is attribute name
31 and the value is json key in definition.
32 """
33 swagger_types = {
34 '_5m': 'int',
35 '_1h': 'int',
36 '_24h': 'int'
37 }
39 nullable_map = {
40 '_5m': False,
41 '_1h': False,
42 '_24h': False
43 }
45 attribute_map = {
46 '_5m': '5m',
47 '_1h': '1h',
48 '_24h': '24h'
49 }
51 def __init__(self, _5m=None, _1h=None, _24h=None): # noqa: E501
52 """VelocityIntervals - a model defined in Swagger""" # noqa: E501
53 self.__5m = None
54 self.__1h = None
55 self.__24h = None
56 self.discriminator = None
57 self._5m = _5m
58 self._1h = _1h
59 if _24h is not None:
60 self._24h = _24h
62 @property
63 def _5m(self) -> int:
64 """Gets the _5m of this VelocityIntervals. # noqa: E501
67 :return: The _5m of this VelocityIntervals. # noqa: E501
68 """
69 return self.__5m
71 @_5m.setter
72 def _5m(self, _5m: int):
73 """Sets the _5m of this VelocityIntervals.
76 :param _5m: The _5m of this VelocityIntervals. # noqa: E501
77 """
78 if _5m is None:
79 raise ValueError("Invalid value for `_5m`, must not be `None`") # noqa: E501
81 self.__5m = _5m
83 @property
84 def _1h(self) -> int:
85 """Gets the _1h of this VelocityIntervals. # noqa: E501
88 :return: The _1h of this VelocityIntervals. # noqa: E501
89 """
90 return self.__1h
92 @_1h.setter
93 def _1h(self, _1h: int):
94 """Sets the _1h of this VelocityIntervals.
97 :param _1h: The _1h of this VelocityIntervals. # noqa: E501
98 """
99 if _1h is None:
100 raise ValueError("Invalid value for `_1h`, must not be `None`") # noqa: E501
102 self.__1h = _1h
104 @property
105 def _24h(self) -> Optional[int]:
106 """Gets the _24h of this VelocityIntervals. # noqa: E501
108 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. # noqa: E501
110 :return: The _24h of this VelocityIntervals. # noqa: E501
111 """
112 return self.__24h
114 @_24h.setter
115 def _24h(self, _24h: Optional[int]):
116 """Sets the _24h of this VelocityIntervals.
118 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. # noqa: E501
120 :param _24h: The _24h of this VelocityIntervals. # noqa: E501
121 """
123 self.__24h = _24h