-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsessionCapture.schema.json
More file actions
197 lines (197 loc) · 6.75 KB
/
sessionCapture.schema.json
File metadata and controls
197 lines (197 loc) · 6.75 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://opentech-ux.github.io/sessionCapture-format",
"type": "object",
"title": "Session Capture",
"description": "A collection of LOMs and events captured during a certain time frame",
"additionalProperties": true,
"properties": {
"ts": {
"$ref": "#/$defs/TimeStamp",
"description": "Start time of this session chunk"
},
"sid": {
"type": "string",
"description": "Unique id identifying the current session"
},
"uid": {
"type": "string",
"description": "Unique id identifying anonymously the current user"
},
"loms": {
"type": "array",
"description": "List of LOMs captured in this session chunk",
"items": {
"anyOf": [
{
"$ref": "#/$defs/Lom"
},
{
"$ref": "#/$defs/LomRef"
}
]
}
},
"ee": {
"type": "array",
"description": "List of exploration events captured in this session chunk",
"items": {
"$ref": "#/$defs/ExplorationEvent"
}
},
"ae": {
"type": "array",
"description": "List of action events captured in this session chunk",
"items": {
"$ref": "#/$defs/ActionEvent"
}
}
},
"required": [
"ts",
"sid"
],
"$defs": {
"TimeStamp": {
"type": "number",
"description": "An instant in time mesured as the number of ellapsed milliseconds since 1970-01-01 00:00:00 UTC"
},
"Dimension": {
"type": "integer",
"description": "Size of a graphical element along an axis",
"minimum": 0
},
"Bounds": {
"type": "array",
"description": "Coordinates of an axis-aligned rectangle",
"additionalItems": false,
"minItems": 4,
"items": [
{
"type": "integer",
"description": "X coordinate of the upper-left corner of the bounds in pixels"
},
{
"type": "integer",
"description": "Y coordinate of the upper-left corner of the bounds in pixels"
},
{
"$ref": "#/$defs/Dimension",
"description": "Width of the bounds in pixels"
},
{
"$ref": "#/$defs/Dimension",
"description": "Height of the bounds in pixels"
}
]
},
"Zone": {
"type": "object",
"description": "Representation of a zone on screen",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "Unique ID of this zone in its LOM"
},
"b": {
"$ref": "#/$defs/Bounds",
"description": "Coordinates of the area occupied by this zone relative to the parent zone"
},
"c": {
"type": "array",
"description": "List of children zones of this zone",
"items": {
"$ref": "#/$defs/Zone"
}
},
"s": {
"type": "object",
"description": "Styling information for zone rendering",
"additionalProperties": false,
"properties": {
"bg": {
"type": "string",
"description": "Background styling in CSS format"
},
"b": {
"type": "string",
"description": "Border styling in CSS format"
}
}
}
},
"required": [
"b"
]
},
"Lom": {
"type": "object",
"description": "Specification of the wireframe of a single Web page",
"additionalProperties": true,
"properties": {
"id": {
"type": "string",
"description": "Unique ID for this LOM in the context of current session"
},
"ts": {
"$ref": "#/$defs/TimeStamp",
"description": "Instant of this LOM capture relative to the session chunk timeStamp"
},
"w": {
"$ref": "#/$defs/Dimension",
"description": "Global page width"
},
"h": {
"$ref": "#/$defs/Dimension",
"description": "Global page height"
},
"t": {
"type": "string",
"description": "Page title to help identify the LOM"
},
"u": {
"type": "string",
"description": "Page URL to help identify the LOM"
},
"r": {
"$ref": "#/$defs/Zone",
"description": "Root zone corresponding to the HTML body element"
}
},
"required": [
"ts",
"w",
"h",
"r"
]
},
"LomRef": {
"type": "object",
"description": "Reference to a LOM previously captured",
"additionalProperties": false,
"properties": {
"ts": {
"$ref": "#/$defs/TimeStamp",
"description": "Instant of this LOM capture relative to the session chunk timeStamp"
},
"ref": {
"type": "string",
"description": "ID of the referenced LOM"
}
},
"required": [
"ts",
"ref"
]
},
"ExplorationEvent": {
"type": "string",
"description": "Information about an exploration event (mouse move, scrolling, keyboard navigation, ...)"
},
"ActionEvent": {
"type": "string",
"description": "Information about an action event (mouse click, keystroke, drag & drop, ...)"
}
}
}