Skip to content

Commit

Permalink
Merge pull request #166 from fingerprintjs/SMSI-795/update_openapi_sp…
Browse files Browse the repository at this point in the history
…ec_new_velocity_signals

SMSI-795: Expose new Velocity Signals
  • Loading branch information
ilfa authored Oct 23, 2024
2 parents 4cfa8c9 + 0b79252 commit 8f0ae1f
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-apes-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'fingerprint-pro-server-api-openapi': minor
---

Added new `ipEvents`, `distinctIpByLinkedId`, and `distinctVisitorIdByLinkedId` fields to the `velocity` Smart Signal.
4 changes: 2 additions & 2 deletions schemas/components/schemas/VelocityIntervalResult.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ properties:
24h:
type: integer
description: >
The `24h` interval of `distinctIp`, `distinctLinkedId`, and
`distinctCountry` will be omitted if the number of `events`` for the
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.
example: 1
Expand Down
37 changes: 25 additions & 12 deletions schemas/components/schemas/VelocityResult.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,41 @@
type: object
description: >
Sums key data points for a specific `visitorId` at three distinct time
description: |
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 identification events attributed to the visitor ID - Number of
distinct IP addresses associated to the visitor ID. - Number of distinct
countries associated with the visitor ID. - Number of distinct `linkedId`s
associated with the visitor ID.
- Number of identification events associated with the visitor ID.
- Number of distinct linked IDs associated with the visitor ID.
- Number of distinct IP addresses associated to the visitor ID.
- Number of distinct countries associated with the visitor ID.
- Number of events associated for 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`, and `distinctCountry`
will be omitted if the number of `events` for the visitor ID in the last 24
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.
additionalProperties: false
properties:
distinctIp:
events:
$ref: VelocityIntervals.yaml
distinctLinkedId:
$ref: VelocityIntervals.yaml
distinctIp:
$ref: VelocityIntervals.yaml
distinctCountry:
$ref: VelocityIntervals.yaml
events:
ipEvents:
$ref: VelocityIntervals.yaml
distinctIpByLinkedId:
$ref: VelocityIntervals.yaml
distinctVisitorIdByLinkedId:
$ref: VelocityIntervals.yaml
required:
- distinctIp
- events
- distinctLinkedId
- distinctIp
- distinctCountry
- events
- ipEvents
- distinctIpByLinkedId
- distinctVisitorIdByLinkedId
21 changes: 21 additions & 0 deletions schemas/paths/examples/get_event_200.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,27 @@
"1h": 5,
"24h": 5
}
},
"ipEvents": {
"intervals": {
"5m": 1,
"1h": 5,
"24h": 5
}
},
"distinctIpByLinkedId": {
"intervals": {
"5m": 1,
"1h": 5,
"24h": 5
}
},
"distinctVisitorIdByLinkedId": {
"intervals": {
"5m": 1,
"1h": 5,
"24h": 5
}
}
}
},
Expand Down
21 changes: 21 additions & 0 deletions schemas/paths/examples/webhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,27 @@
"1h": 5,
"24h": 5
}
},
"ipEvents": {
"intervals": {
"5m": 1,
"1h": 5,
"24h": 5
}
},
"distinctIpByLinkedId": {
"intervals": {
"5m": 1,
"1h": 5,
"24h": 5
}
},
"distinctVisitorIdByLinkedId": {
"intervals": {
"5m": 1,
"1h": 5,
"24h": 5
}
}
},
"developerTools": {
Expand Down

0 comments on commit 8f0ae1f

Please sign in to comment.