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

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 

16 

17 

18class VelocityIntervals(BaseModel): 

19 """ 

20 Is absent if the velocity data could not be generated for the visitor ID.  

21 

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

23 

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 } 

38 

39 nullable_map = { 

40 '_5m': False, 

41 '_1h': False, 

42 '_24h': False 

43 } 

44 

45 attribute_map = { 

46 '_5m': '5m', 

47 '_1h': '1h', 

48 '_24h': '24h' 

49 } 

50 

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 

61 

62 @property 

63 def _5m(self) -> int: 

64 """Gets the _5m of this VelocityIntervals. # noqa: E501 

65 

66 

67 :return: The _5m of this VelocityIntervals. # noqa: E501 

68 """ 

69 return self.__5m 

70 

71 @_5m.setter 

72 def _5m(self, _5m: int): 

73 """Sets the _5m of this VelocityIntervals. 

74 

75 

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 

80 

81 self.__5m = _5m 

82 

83 @property 

84 def _1h(self) -> int: 

85 """Gets the _1h of this VelocityIntervals. # noqa: E501 

86 

87 

88 :return: The _1h of this VelocityIntervals. # noqa: E501 

89 """ 

90 return self.__1h 

91 

92 @_1h.setter 

93 def _1h(self, _1h: int): 

94 """Sets the _1h of this VelocityIntervals. 

95 

96 

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 

101 

102 self.__1h = _1h 

103 

104 @property 

105 def _24h(self) -> Optional[int]: 

106 """Gets the _24h of this VelocityIntervals. # noqa: E501 

107 

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 

109 

110 :return: The _24h of this VelocityIntervals. # noqa: E501 

111 """ 

112 return self.__24h 

113 

114 @_24h.setter 

115 def _24h(self, _24h: Optional[int]): 

116 """Sets the _24h of this VelocityIntervals. 

117 

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 

119 

120 :param _24h: The _24h of this VelocityIntervals. # noqa: E501 

121 """ 

122 

123 self.__24h = _24h 

124