Schema:EventCapsule

Revision 17722721
description"A wrapper around event objects that encodes generic metadata. NOTE: This on wiki schema serves purely for documentation purposes. It is not the canonical schema used by EventLogging source code. The EventCapsule schema can be found at https://github.com/wikimedia/eventlogging/blob/master/eventlogging/capsule.py"
properties
event
type"object"
description"The encapsulated event object"
requiredtrue
wiki
type"string"
description"$wgDBName (for example: 'enwiki')"
requiredtrue
webHost
type"string"
description"Request host. 'window.location.hostname' on client-side events; $_SERVER['HTTP_HOST'] on server."
schema
type"string"
description"Title of event schema"
requiredtrue
revision
type"integer"
description"Revision ID of event schema"
requiredtrue
topic
type"string"
description"The queue topic name this event belongs in"
recvFrom
type"string"
description"Hostname of server emitting the log line"
requiredtrue
timestamp
type"number"
description"UTC unix epoch timestamp of event. Optional. Should be the same as dt. Exists for backwards compatibility. See: https://phabricator.wikimedia.org/T179625)"
dt
type"string"
description"UTC ISO-8601 timestamp of event"
format"date-time"
seqId
type"integer"
description"Udp2log sequence ID"
uuid
type"string"
description"Unique event identifier"
format"uuid5-hex"
requiredtrue
userAgent
type"any"
description"User Agent from HTTP request. Either a parsed object, parsed JSON string, or original User-Agent string."
requiredfalse
ip
type"string"
description"Client IP address that sent this event, usually best guess parsed out of from X-Forwarded-For."
requiredfalse
additionalPropertiesfalse