|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema", |
3 | | - "$id": "rum/process-schema.json", |
4 | | - "title": "RumProcessEvent", |
| 3 | + "$id": "rum/execution_context-schema.json", |
| 4 | + "title": "RumExecutionContextEvent", |
5 | 5 | "type": "object", |
6 | | - "description": "Schema of all properties of a Process event", |
| 6 | + "description": "Schema of all properties of an Execution Context event", |
7 | 7 | "allOf": [ |
8 | 8 | { |
9 | 9 | "$ref": "_common-schema.json" |
10 | 10 | }, |
11 | 11 | { |
12 | | - "required": ["type", "process", "_dd"], |
| 12 | + "required": ["type", "execution_context", "_dd"], |
13 | 13 | "properties": { |
14 | 14 | "type": { |
15 | 15 | "type": "string", |
16 | 16 | "description": "RUM event type", |
17 | | - "const": "process", |
| 17 | + "const": "execution_context", |
18 | 18 | "readOnly": true |
19 | 19 | }, |
20 | | - "process": { |
| 20 | + "execution_context": { |
21 | 21 | "type": "object", |
22 | | - "description": "Process properties", |
| 22 | + "description": "Execution context properties", |
23 | 23 | "required": ["id", "role", "pid"], |
24 | 24 | "properties": { |
25 | 25 | "id": { |
26 | 26 | "type": "string", |
27 | | - "description": "UUID of the process", |
| 27 | + "description": "UUID of the execution context", |
28 | 28 | "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", |
29 | 29 | "readOnly": true |
30 | 30 | }, |
31 | 31 | "role": { |
32 | 32 | "type": "string", |
33 | | - "description": "Role of the process", |
| 33 | + "description": "Role of the execution context", |
34 | 34 | "enum": ["main", "renderer", "utility"], |
35 | 35 | "readOnly": true |
36 | 36 | }, |
|
48 | 48 | }, |
49 | 49 | "name": { |
50 | 50 | "type": "string", |
51 | | - "description": "Process name", |
| 51 | + "description": "Execution context name", |
52 | 52 | "readOnly": true |
53 | 53 | }, |
54 | 54 | "duration": { |
55 | 55 | "type": "integer", |
56 | | - "description": "Process lifetime in nanoseconds", |
| 56 | + "description": "Execution context lifetime in nanoseconds", |
57 | 57 | "minimum": 0, |
58 | 58 | "readOnly": true |
59 | 59 | }, |
60 | 60 | "exit_reason": { |
61 | 61 | "type": "string", |
62 | | - "description": "Reason for process exit", |
| 62 | + "description": "Reason for execution context exit", |
63 | 63 | "enum": [ |
64 | 64 | "clean-exit", |
65 | 65 | "abnormal-exit", |
|
82 | 82 | "properties": { |
83 | 83 | "document_version": { |
84 | 84 | "type": "integer", |
85 | | - "description": "Version of the update of the process event", |
| 85 | + "description": "Version of the update of the execution context event", |
86 | 86 | "minimum": 0, |
87 | 87 | "readOnly": true |
88 | 88 | } |
|
0 commit comments