Constructor
new mw.testKitchen.EventFactory(contextualAttributesFactory)package
#
Parameters:
| Name | Type | Description |
|---|---|---|
contextualAttributesFactory |
mw.testKitchen.ContextualAttributesFactory |
- Source:
Methods
newEvent(streamName, schemaID, contextualAttributes, action, interactionData) → {Object}
#
Creates a new event to be sent.
The event will contain the following fields:
action$schemameta.domainmeta.streamdt, which will be set to the current time in ISO 8601 format (including milliseconds)
If $interactionData is set, then it will be added to the event. If contextual attributes
are requested and they are available, then they will be added to the event.
Parameters:
| Name | Type | Description |
|---|---|---|
streamName |
string | |
schemaID |
string | |
contextualAttributes |
Array.<string> | |
action |
string | |
interactionData |
Object |
Returns:
- Type
- Object
- Source: