Skip to content

Commit 2e56e9c

Browse files
committed
Merge remote-tracking branch 'origin/main' into SMSI-694/devtools
2 parents cec3799 + e4ab557 commit 2e56e9c

File tree

4 files changed

+123
-2
lines changed

4 files changed

+123
-2
lines changed

examples/get_event_200.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,32 @@
278278
"result": false
279279
}
280280
},
281+
"velocity": {
282+
"data": {
283+
"distinctIp": {
284+
"intervals": {
285+
"5m": 1,
286+
"1h": 1,
287+
"24h": 1
288+
}
289+
},
290+
"distinctLinkedId": {},
291+
"distinctCountry": {
292+
"intervals": {
293+
"5m": 1,
294+
"1h": 2,
295+
"24h": 2
296+
}
297+
},
298+
"events": {
299+
"intervals": {
300+
"5m": 1,
301+
"1h": 5,
302+
"24h": 5
303+
}
304+
}
305+
}
306+
},
281307
"developerTools": {
282308
"data": {
283309
"result": false

examples/get_event_200_all_errors.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@
142142
"message": "internal server error"
143143
}
144144
},
145+
"velocity": {
146+
"error": {
147+
"code": "Failed",
148+
"message": "internal server error"
149+
}
150+
},
145151
"developerTools": {
146152
"error": {
147153
"code": "Failed",

examples/webhook.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,30 @@
192192
"remoteControl": {
193193
"result": false
194194
},
195+
"velocity": {
196+
"distinctIp": {
197+
"intervals": {
198+
"5m": 1,
199+
"1h": 1,
200+
"24h": 1
201+
}
202+
},
203+
"distinctLinkedId": {},
204+
"distinctCountry": {
205+
"intervals": {
206+
"5m": 1,
207+
"1h": 2,
208+
"24h": 2
209+
}
210+
},
211+
"events": {
212+
"intervals": {
213+
"5m": 1,
214+
"1h": 5,
215+
"24h": 5
216+
}
217+
}
218+
},
195219
"developerTools": {
196220
"result": false
197221
}

schemas/fingerprint-server-api.yaml

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ paths:
250250
tags:
251251
- Events
252252
operationId: 'updateEvent'
253-
summary: Update an event with a given request ID
253+
summary: Update an event with a given request ID
254254
description: |
255255
Change information in existing events specified by `requestId` or *flag suspicious events*.
256256
@@ -635,7 +635,7 @@ paths:
635635
summary: Error response when the secret API key was not provided.
636636
externalValue: '/examples/shared/403_error_token_required.json'
637637
403-wrong-region:
638-
summary: Error response when the API region is different from the region, the calling application is configured with.
638+
summary: Error response when the API region is different from the region, the calling application is configured with.
639639
externalValue: '/examples/shared/403_error_wrong_region.json'
640640

641641
'404':
@@ -918,6 +918,8 @@ components:
918918
$ref: '#/components/schemas/SuspectScoreResult'
919919
remoteControl:
920920
$ref: '#/components/schemas/RemoteControlResult'
921+
velocity:
922+
$ref: '#/components/schemas/VelocityResult'
921923
developerTools:
922924
$ref: '#/components/schemas/DeveloperToolsResult'
923925
required:
@@ -1416,6 +1418,15 @@ components:
14161418
$ref: '#/components/schemas/RemoteControlResult'
14171419
error:
14181420
$ref: '#/components/schemas/ProductError'
1421+
velocity:
1422+
title: SignalResponseVelocity
1423+
type: object
1424+
additionalProperties: false
1425+
properties:
1426+
data:
1427+
$ref: '#/components/schemas/VelocityResult'
1428+
error:
1429+
$ref: '#/components/schemas/ProductError'
14191430
developerTools:
14201431
title: SignalResponseDeveloperTools
14211432
type: object
@@ -1683,6 +1694,33 @@ components:
16831694
example: 0
16841695
required:
16851696
- result
1697+
VelocityResult:
1698+
type: object
1699+
description: >
1700+
Sums key data points for a specific `visitorId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows:
1701+
1702+
- Number of identification events attributed to the visitor ID
1703+
- Number of distinct IP addresses associated to the visitor ID.
1704+
- Number of distinct countries associated with the visitor ID.
1705+
- Number of distinct `linkedId`s associated with the visitor ID.
1706+
1707+
The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` 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.
1708+
1709+
additionalProperties: false
1710+
properties:
1711+
distinctIp:
1712+
$ref: '#/components/schemas/VelocityIntervals'
1713+
distinctLinkedId:
1714+
$ref: '#/components/schemas/VelocityIntervals'
1715+
distinctCountry:
1716+
$ref: '#/components/schemas/VelocityIntervals'
1717+
events:
1718+
$ref: '#/components/schemas/VelocityIntervals'
1719+
required:
1720+
- distinctIp
1721+
- distinctLinkedId
1722+
- distinctCountry
1723+
- events
16861724
RawDeviceAttributesResult:
16871725
type: object
16881726
description: >
@@ -1953,3 +1991,30 @@ components:
19531991
required:
19541992
- code
19551993
- message
1994+
VelocityIntervals:
1995+
type: object
1996+
additionalProperties: false
1997+
properties:
1998+
'intervals':
1999+
$ref: '#/components/schemas/VelocityIntervalResult'
2000+
VelocityIntervalResult:
2001+
type: object
2002+
description: >
2003+
Is absent if the velocity data could not be generated for the visitor ID.
2004+
additionalProperties: false
2005+
properties:
2006+
'5m':
2007+
type: integer
2008+
example: 1
2009+
'1h':
2010+
type: integer
2011+
example: 1
2012+
'24h':
2013+
type: integer
2014+
description: >
2015+
The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` 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.
2016+
example: 1
2017+
required:
2018+
- 5m
2019+
- 1h
2020+

0 commit comments

Comments
 (0)