Schema:APIRequest

PHP logging

EventLogging::logEvent( 'APIRequest', 12548336, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"APIRequest": 12548336
			}
		}
	}
}

JavaScript logging

mw.track( 'event.APIRequest', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 12548336
description"Logs a request to the MediaWiki 'action' API on the server-side."
properties
action
type"string"
description"The 'action' parameter from the request if set. (e.g. 'query', 'edit', etc.)"
globalId
type"integer"
description"Global (centralauth) ID of the user performing the request (zero for logged-out users). Note that in the case of OAuth requests, this global_id should correspond to the user who authorized the request -- not the consumer."
requiredtrue
consumerId
type"integer"
description"The ID of the consumer who is making the request. (zero for non-OAuth requests)."
requiredtrue
protocol
type"string"
enum
"http"
"https"
"other"
description"The protocol used to submit the request to the API"
requiredtrue
method
type"string"
description"The HTTP method of the request."
requiredtrue
origin
type"string"
enum
"production"
"labs"
"other-internal"
"other-external"
description"The origin of the request by IP block."
requiredtrue