-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add org.w3/PerformanceNavigationTiming/jsonschema/1-0-0 close (#1294)
- Loading branch information
Showing
1 changed file
with
227 additions
and
0 deletions.
There are no files selected for viewing
227 changes: 227 additions & 0 deletions
227
schemas/org.w3/PerformanceNavigationTiming/jsonschema/1-0-0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for page navigation performance, based on the PerformanceNavigationTiming interface (see https://w3c.github.io/navigation-timing/)", | ||
"self": { | ||
"vendor": "org.w3", | ||
"name": "PerformanceNavigationTiming", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"decodedBodySize": { | ||
"type": [ "integer", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A number that is the size (in octets) received from the fetch (HTTP or cache) of the message body, after removing any applied content encoding." | ||
}, | ||
"encodedBodySize": { | ||
"type": [ "integer", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A number representing the size (in octets) received from the fetch (HTTP or cache), of the payload body, before removing any applied content encodings." | ||
}, | ||
"redirectStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp that represents the start time of the fetch which initiates the redirect." | ||
}, | ||
"redirectEnd": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp immediately after receiving the last byte of the response of the last redirect." | ||
}, | ||
"fetchStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp immediately before the browser starts to fetch the resource." | ||
}, | ||
"domainLookupStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp immediately before the browser starts the domain name lookup for the resource." | ||
}, | ||
"domainLookupEnd": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp representing the time immediately after the browser finishes the domain name lookup for the resource." | ||
}, | ||
"connectStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp immediately before the browser starts to establish the connection to the server to retrieve the resource." | ||
}, | ||
"secureConnectionStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp immediately before the browser starts the handshake process to secure the current connection." | ||
}, | ||
"connectEnd": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp immediately after the browser finishes establishing the connection to the server to retrieve the resource." | ||
}, | ||
"requestStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp immediately before the browser starts requesting the resource from the server." | ||
}, | ||
"responseStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp immediately after the browser receives the first byte of the response from the server." | ||
}, | ||
"responseEnd": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first." | ||
}, | ||
"unloadEventStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp representing the time immediately after the current document's unload event handler starts." | ||
}, | ||
"unloadEventEnd": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp representing the time immediately after the current document's unload event handler completes." | ||
}, | ||
"domInteractive": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp representing the time immediately before the user agent sets the document's readyState to 'interactive'." | ||
}, | ||
"domContentLoadedEventStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp representing the time immediately before the current document's DOMContentLoaded event handler starts." | ||
}, | ||
"domContentLoadedEventEnd": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp representing the time immediately after the current document's DOMContentLoaded event handler completes." | ||
}, | ||
"domComplete": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp representing the time immediately before the user agent sets the document's readyState to 'complete'." | ||
}, | ||
"loadEventStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp representing the time immediately after the current document's load event handler starts." | ||
}, | ||
"loadEventEnd": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A DOMHighResTimeStamp representing the time immediately after the current document's load event handler completes." | ||
}, | ||
"startTime": { | ||
"type": [ "integer", "null" ], | ||
"maximum": 0, | ||
"minimum": 0, | ||
"description": "Returns a DOMHighResTimeStamp with a value of 0." | ||
}, | ||
"entryType": { | ||
"type": [ "string", "null" ], | ||
"maxLength": 128, | ||
"description": "The string 'navigation'." | ||
}, | ||
"redirectCount": { | ||
"type": [ "integer", "null" ], | ||
"minimum": 0, | ||
"maximum": 64, | ||
"description": "A number representing the number of redirects since the last non-redirect navigation in the current browsing context." | ||
}, | ||
"type": { | ||
"type": [ "string", "null" ], | ||
"maxLength": 32, | ||
"description": "A string representing the navigation type. Either 'navigate', 'reload', 'back_forward' or 'prerender'." | ||
}, | ||
"workerStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "Returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0." | ||
}, | ||
"nextHopProtocol": { | ||
"type": [ "string", "null" ], | ||
"maxLength": 16, | ||
"description": "A string representing the network protocol used to fetch the resource, as identified by the ALPN Protocol ID (RFC7301)" | ||
}, | ||
"transferSize": { | ||
"type": ["integer", "null"], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "A number representing the size (in octets) of the fetched resource. The size includes the response header fields plus the response payload body." | ||
}, | ||
"duration": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "Returns a timestamp that is the difference between the loadEventEnd and startTime properties." | ||
}, | ||
"activationStart": { | ||
"type": [ "number", "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0, | ||
"description": "If the document is prerendered, activationStart represents the time between when the prerender was started and the document was actually activated." | ||
}, | ||
"deliveryType": { | ||
"type": [ "string", "null" ], | ||
"maxLength": 128, | ||
"description": "Expose information about how a resource was delivered e.g. resources which were delivered from the cache." | ||
}, | ||
"serverTiming": { | ||
"type": [ "array", "null"], | ||
"items": [{ | ||
"$ref": "#/definitions/serverTiming", | ||
"description": "PerformanceServerTiming entry" | ||
}], | ||
"description": "Array of PerformanceServerTiming entries." | ||
} | ||
}, | ||
"definitions": { | ||
"serverTiming": { | ||
"type": "object", | ||
"properties": { | ||
"duration": { | ||
"description": "Duration of the measurement.", | ||
"type": [ "number" , "null" ], | ||
"maximum": 2147483647, | ||
"minimum": 0 | ||
}, | ||
"name": { | ||
"description": "The name of the measurement.", | ||
"type": "string", | ||
"maxLength": 4096 | ||
}, | ||
"description": { | ||
"description": "A short description of the measurement.", | ||
"type": [ "string" , "null" ], | ||
"maxLength": 4096 | ||
} | ||
} | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |