Constructor
new MediaWikiMetricsClientIntegration(eventLog, eventLogConfig)
#
Parameters:
Name | Type | Description |
---|---|---|
eventLog |
Object | |
eventLogConfig |
Object |
Methods
clone(obj) → {Object}
#
Clones the object deeply.
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object |
Returns:
- Type
- Object
enqueueEvent(eventData)
#
Enqueues the event to be submitted to the event ingestion service.
Parameters:
Name | Type | Description |
---|---|---|
eventData |
Object |
getContextAttributes() → {Object}
#
Gets the values for those context attributes that are available in the execution environment.
Returns:
- Type
- Object
Gets the values for those context attributes that are available in the execution environment.
getHostname() → {string}
#
Logs the warning to whatever logging backend that the execution environment, e.g. the console.
Returns:
- Type
- string
getPageviewId() → {string}
#
Gets a token unique to the current pageview within the execution environment.
Returns:
- Type
- string
getSessionId() → {string}
#
Gets a token unique to the current session within the execution environment.
Returns:
- Type
- string
logWarning(string)
#
Gets the hostname of the current document.
Parameters:
Name | Type | Description |
---|---|---|
string |
string |
onSubmit(streamName, eventData)
#
Called when an event is enqueued to be submitted to the event ingestion service.
Parameters:
Name | Type | Description |
---|---|---|
streamName |
string | |
eventData |
Object |