PHP logging
EventLogging::logEvent( 'MultimediaViewerNetworkPerformance', 15573630, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"MultimediaViewerNetworkPerformance": 15573630
}
}
}
}
JavaScript logging
mw.track( 'event.MultimediaViewerNetworkPerformance', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Represents a set of content loading network performance measurements provided by the Navigation Timing and Resource Timing APIs" |
---|
properties | type | description | "Type of content being measured" |
---|
required | true |
---|
type | "string" |
---|
|
---|
contentHost | description | "Domain of the page where the request originated from" |
---|
required | true |
---|
type | "string" |
---|
|
---|
urlHost | description | "Domain of the content" |
---|
required | true |
---|
type | "string" |
---|
|
---|
status | description | "HTTP response status code" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
contentLength | description | "Size of the content" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
country | description | "Client's country" |
---|
required | false |
---|
type | "string" |
---|
|
---|
isHttps | description | "Whether the content was loaded over https or not" |
---|
required | true |
---|
type | "boolean" |
---|
|
---|
timestamp | description | "Time the request hit the server" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
total | description | "Total duration of the content load, in ms" |
---|
required | true |
---|
type | "integer" |
---|
|
---|
redirect | description | "Duration of the redirect, if any, in ms" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
dns | description | "Duration of the dns lookup, in ms" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
tcp | description | "Duration of the TCP connect, in ms" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
request | description | "Duration of the request, in ms" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
response | description | "Duration of the response, in ms" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
cache | description | "Duration of the cache hit, in ms" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
age | description | "Cache entry age" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
XCache | description | "X-Cache header" |
---|
required | false |
---|
type | "string" |
---|
|
---|
XVarnish | description | "X-Varnish header" |
---|
required | false |
---|
type | "string" |
---|
|
---|
varnish1 | description | "1st varnish server" |
---|
required | false |
---|
type | "string" |
---|
|
---|
varnish2 | description | "2nd varnish server" |
---|
required | false |
---|
type | "string" |
---|
|
---|
varnish3 | description | "3rd varnish server" |
---|
required | false |
---|
type | "string" |
---|
|
---|
varnish4 | description | "4th varnish server" |
---|
required | false |
---|
type | "string" |
---|
|
---|
varnish1hits | description | "Hit count on the 1st varnish server" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
varnish2hits | description | "Hit count on the 2nd varnish server" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
varnish3hits | description | "Hit count on the 3rd varnish server" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
varnish4hits | description | "Hit count on the 4th varnish server" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
bandwidth | description | "Bandwidth, as provided by the Network Information API" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
metered | description | "Whether the connection is metered or not, as provided by the Network Information API" |
---|
required | false |
---|
type | "boolean" |
---|
|
---|
uploadTimestamp | description | "Timestamp of the most recent upload for that file" |
---|
required | false |
---|
type | "string" |
---|
|
---|
lastModified | description | "Last-Modified header as returned by the server" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
imageWidth | description | "Requested thumbnail width (for image requests)" |
---|
required | false |
---|
type | "integer" |
---|
|
---|
|
---|