Jump to content

Schema:BandwidthStats

PHP logging

EventLogging::logEvent( 'BandwidthStats', 12295608, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"BandwidthStats": 12295608
			}
		}
	}
}

JavaScript logging

mw.track( 'event.BandwidthStats', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 12295608
description"Bandwidth information for a single page view"
properties
type
description"Type of the connection, per http://w3c.github.io/netinfo/#dfn-connection-types"
type"string"
downlinkMax
description"Maximum downlink speed in megabits per second."
type"number"
isAnon
description"True if the user was anonymous; false if logged in."
requiredtrue
type"boolean"
isHttps
description"True if request was secure (i.e., used HTTPS)."
type"boolean"
originCountry
description"Country in which request originated, based on GeoIP look-up."
type"string"