Expand all

EventSubmitter

Adapts the background queue for the JavaScript Metrics Platform Client (JS MPC).

The class is temporary. It will be removed after Data Products have tested and verified the use of the DefaultEventSubmitter class provided by the JS MPC soon (see T375749).

Before T375749:

After T375749:

See Metrics Platform on Wikitech.

Constructor

new EventSubmitter(eventGateUri, enqueue, isDebugMode) #

Parameters:

Name Type Description
eventGateUri string
enqueue function
isDebugMode boolean
Source:

Methods

onSubmitEvent(eventData) #

Notifies the user that an event has been enqueued for submission if they have enabled

Parameters:

Name Type Description
eventData Object
Source:

Notifies the user that an event has been enqueued for submission if they have enabled

.

submitEvent(eventData) #

Enqueues the event to be submitted to the event ingestion service.

Parameters:

Name Type Description
eventData Object
Source:
Enqueues the event to be submitted to the event ingestion service.