Coverage for fingerprint_pro_server_api_sdk/models/velocity_intervals.py: 87%
38 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
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 attribute_map = {
40 '_5m': '5m',
41 '_1h': '1h',
42 '_24h': '24h'
43 }
45 def __init__(self, _5m=None, _1h=None, _24h=None): # noqa: E501
46 """VelocityIntervals - a model defined in Swagger""" # noqa: E501
47 self.__5m = None
48 self.__1h = None
49 self.__24h = None
50 self.discriminator = None
51 self._5m = _5m
52 self._1h = _1h
53 if _24h is not None:
54 self._24h = _24h
56 @property
57 def _5m(self) -> int:
58 """Gets the _5m of this VelocityIntervals. # noqa: E501
61 :return: The _5m of this VelocityIntervals. # noqa: E501
62 """
63 return self.__5m
65 @_5m.setter
66 def _5m(self, _5m: int):
67 """Sets the _5m of this VelocityIntervals.
70 :param _5m: The _5m of this VelocityIntervals. # noqa: E501
71 """
72 if _5m is None:
73 raise ValueError("Invalid value for `_5m`, must not be `None`") # noqa: E501
75 self.__5m = _5m
77 @property
78 def _1h(self) -> int:
79 """Gets the _1h of this VelocityIntervals. # noqa: E501
82 :return: The _1h of this VelocityIntervals. # noqa: E501
83 """
84 return self.__1h
86 @_1h.setter
87 def _1h(self, _1h: int):
88 """Sets the _1h of this VelocityIntervals.
91 :param _1h: The _1h of this VelocityIntervals. # noqa: E501
92 """
93 if _1h is None:
94 raise ValueError("Invalid value for `_1h`, must not be `None`") # noqa: E501
96 self.__1h = _1h
98 @property
99 def _24h(self) -> Optional[int]:
100 """Gets the _24h of this VelocityIntervals. # noqa: E501
102 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
104 :return: The _24h of this VelocityIntervals. # noqa: E501
105 """
106 return self.__24h
108 @_24h.setter
109 def _24h(self, _24h: Optional[int]):
110 """Sets the _24h of this VelocityIntervals.
112 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
114 :param _24h: The _24h of this VelocityIntervals. # noqa: E501
115 """
117 self.__24h = _24h