|
1 | 1 | { |
2 | | - "$id": "com.amazon.rum.performance_navigation_timing", |
| 2 | + "$id": "com.amazon.rum.performance_navigation_event", |
3 | 3 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
4 | | - "title": "PerformanceNavigationTimingEvent", |
| 4 | + "title": "NavigationEvent", |
5 | 5 | "type": "object", |
6 | 6 | "properties": { |
7 | | - "name": { |
8 | | - "type": "string" |
| 7 | + "version": { |
| 8 | + "const": "1.0.0", |
| 9 | + "type": "string", |
| 10 | + "description": "Schema version." |
9 | 11 | }, |
10 | | - "entryType": { |
11 | | - "const": "navigation", |
12 | | - "type": "string" |
| 12 | + "initiatorType": { |
| 13 | + "type": "string", |
| 14 | + "enum": ["navigation", "route_change"] |
| 15 | + }, |
| 16 | + "navigationType": { |
| 17 | + "description": "An unsigned short which indicates how the navigation to this page was done. Possible values are:TYPE_NAVIGATE (0), TYPE_RELOAD (1), TYPE_BACK_FORWARD (2), TYPE_RESERVED (255)", |
| 18 | + "type": "string", |
| 19 | + "enum": ["navigate", "reload", "back_forward", "reserved"] |
13 | 20 | }, |
14 | 21 | "startTime": { |
15 | | - "type": "number", |
16 | | - "description": "StartTime value is always '0' for PerformanceNavigationTimingEvents created by the PerformanceAPI. However, non-W3C 'route_changes' created by RUM's polyfill for SinglePageApplications can have startTimes >= 0." |
| 22 | + "type": "number" |
17 | 23 | }, |
18 | | - "duration": { |
| 24 | + "unloadEventStart": { |
19 | 25 | "type": "number" |
20 | 26 | }, |
21 | | - "initiatorType": { |
22 | | - "type": "string", |
23 | | - "enum": ["navigation", "route_change"], |
24 | | - "description": "InitiatorType value is always 'navigation' for PerformanceNavigationTimingEvents created by the PerformanceAPI. However, RUM adds the non-W3C concept 'route_change' as a polyfill because the PerformanceAPI currently does not support Single Page Applications." |
| 27 | + "promptForUnload": { |
| 28 | + "type": "number" |
25 | 29 | }, |
26 | | - "nextHopProtocol": { |
27 | | - "type": "string" |
| 30 | + "redirectCount": { |
| 31 | + "type": "integer" |
28 | 32 | }, |
29 | | - "workerStart": { |
| 33 | + "redirectStart": { |
30 | 34 | "type": "number" |
31 | 35 | }, |
32 | | - "redirectStart": { |
| 36 | + "redirectTime": { |
| 37 | + "type": "number" |
| 38 | + }, |
| 39 | + "workerStart": { |
33 | 40 | "type": "number" |
34 | 41 | }, |
35 | | - "redirectEnd": { |
| 42 | + "workerTime": { |
36 | 43 | "type": "number" |
37 | 44 | }, |
38 | 45 | "fetchStart": { |
|
41 | 48 | "domainLookupStart": { |
42 | 49 | "type": "number" |
43 | 50 | }, |
44 | | - "domainLookupEnd": { |
| 51 | + "dns": { |
45 | 52 | "type": "number" |
46 | 53 | }, |
| 54 | + "nextHopProtocol": { |
| 55 | + "type": "string" |
| 56 | + }, |
47 | 57 | "connectStart": { |
48 | 58 | "type": "number" |
49 | 59 | }, |
50 | | - "connectEnd": { |
| 60 | + "connect": { |
51 | 61 | "type": "number" |
52 | 62 | }, |
53 | 63 | "secureConnectionStart": { |
54 | 64 | "type": "number" |
55 | 65 | }, |
| 66 | + "tlsTime": { |
| 67 | + "type": "number" |
| 68 | + }, |
56 | 69 | "requestStart": { |
57 | 70 | "type": "number" |
58 | 71 | }, |
| 72 | + "timeToFirstByte": { |
| 73 | + "type": "number" |
| 74 | + }, |
59 | 75 | "responseStart": { |
60 | 76 | "type": "number" |
61 | 77 | }, |
62 | | - "responseEnd": { |
| 78 | + "responseTime": { |
63 | 79 | "type": "number" |
64 | 80 | }, |
65 | | - "transferSize": { |
| 81 | + "domInteractive": { |
66 | 82 | "type": "number" |
67 | 83 | }, |
68 | | - "encodedBodySize": { |
| 84 | + "domContentLoadedEventStart": { |
69 | 85 | "type": "number" |
70 | 86 | }, |
71 | | - "decodedBodySize": { |
| 87 | + "domContentLoaded": { |
72 | 88 | "type": "number" |
73 | 89 | }, |
74 | 90 | "domComplete": { |
75 | 91 | "type": "number" |
76 | 92 | }, |
77 | | - "domContentLoadedEventEnd": { |
| 93 | + "domProcessingTime": { |
78 | 94 | "type": "number" |
79 | 95 | }, |
80 | | - "domContentLoadedEventStart": { |
| 96 | + "loadEventStart": { |
81 | 97 | "type": "number" |
82 | 98 | }, |
83 | | - "domInteractive": { |
| 99 | + "loadEventTime": { |
84 | 100 | "type": "number" |
85 | 101 | }, |
86 | | - "loadEventEnd": { |
| 102 | + "duration": { |
87 | 103 | "type": "number" |
88 | 104 | }, |
89 | | - "loadEventStart": { |
| 105 | + "headerSize": { |
90 | 106 | "type": "number" |
91 | 107 | }, |
92 | | - "redirectCount": { |
93 | | - "type": "integer" |
94 | | - }, |
95 | | - "type": { |
96 | | - "type": "string", |
97 | | - "enum": ["navigate", "reload", "back_forward", "prerender"] |
| 108 | + "transferSize": { |
| 109 | + "type": "number" |
98 | 110 | }, |
99 | | - "unloadEventEnd": { |
| 111 | + "compressionRatio": { |
100 | 112 | "type": "number" |
101 | 113 | }, |
102 | | - "unloadEventStart": { |
| 114 | + "navigationTimingLevel": { |
103 | 115 | "type": "number" |
104 | 116 | } |
105 | 117 | }, |
106 | 118 | "additionalProperties": false, |
107 | | - "required": ["entryType", "startTime", "duration", "initiatorType"] |
| 119 | + "required": ["version", "initiatorType", "startTime", "duration"] |
108 | 120 | } |
0 commit comments