PHP logging

EventLogging::logEvent( 'MachineAidedDepictsUsage', 19367238, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MachineAidedDepictsUsage": 19367238
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MachineAidedDepictsUsage', { /* ... */ } );

Schema:MachineAidedDepictsUsage

From Meta, a Wikimedia project coordination wiki
Revision 19367238
Jump to navigation Jump to search
description"Track user interactions with Machine-Aided Depicts on Commons (incl. through API)"
properties
action
requiredtrue
description"Type of event - receive: user received a tag suggestion - confirm: user confirmed the tag - reject: user rejected the tag - skip: user skipped the file"
type"string"
enum
"receive"
"confirm"
"reject"
"skip"
service
description"Service used to obtain the tag suggestion (e.g. 'Google Vision API'); only present in action='receive' events"
type"string"
requiredfalse
confidence_score
description"Confidence score of the suggested tag from service; only present in action='receive' events"
type"number"
requiredfalse
wait_time
description"Time it took to receive suggestion from initial request (in milliseconds); only present in action='receive' events"
type"integer"
requiredfalse
tag_id
description"The ID of the suggested depict tag as logged on the back-end, for connecting multiple events pertaining to the same depict tag suggestion (e.g. which received suggestions were confirmed or rejected) Note: not present in action='skip' events"
type"integer"
requiredfalse
page_id
description"The MediaWiki page ID of the File that the user is adding machine-aided depicts for Note: any given File may have multiple tags suggested"
type"integer"
requiredtrue