-
Notifications
You must be signed in to change notification settings - Fork 3
/
sessionTimestamp.schema.json
46 lines (46 loc) · 1.21 KB
/
sessionTimestamp.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://connectproject.github.io/schemas/sessionTimestamp.schema.json",
"title": "Session Timestamp",
"description": "A timestamp for the beginning and end of an app session",
"type": "object",
"properties": {
"applicationId": {
"type": "string",
"description": "Unique Connect identifier of the app originating the event. Read-only (added by Connect)"
},
"userId": {
"type": "string",
"description": "Unique Connect identifier of the user originating the event. Read-only (added by Connect)"
},
"sessionId": {
"type": "string",
"description": "Identifier of the session originating the event"
},
"sessionBegin": {
"type": "string",
"format": "date-time",
"description": "Timestamp for the beginning of the session"
},
"sessionEnd": {
"type": "string",
"format": "date-time",
"description": "Timestamp for the end of the session"
}
},
"oneOf": [
{
"required": [
"sessionId",
"sessionBegin"
]
},
{
"required": [
"sessionId",
"sessionEnd"
]
}
],
"additionalProperties": false
}