1.4.6 • Published 11 months ago

@mimik/event-helper v1.4.6

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
11 months ago

Functions

validate() ⇒ Promise

Topic inititialization and validation

Kind: global function
Returns: Promise - .
Category: async
Throws:

  • Promise Will throw an error if the topic is not configured.

Requires: module:@mimik/sumologic-winston-logger
Fulfil: Return null if config.topic is set to off.
Fulfil: object Return eventProcessor is config.topic is set to off or mock.

sendEvent(eventType, event, ids, body, correlationId, options) ⇒ Promise

Sending a event to a topic

Kind: global function
Returns: Promise - .
Category: async
Requires: module:@mimik/sumologic-winston-logger
Fulfil: Return null.

ParamTypeDescription
eventTypestringType of event to be sent.
eventstringEvent to be sent.
idsobjectobject containing id of the user.
bodyobjectbody to add to the event to be sent.
correlationIdstringCorrelation id associated with the event to be sent.
optionsobjectOptions associated with the call. Use to apply metrics. Can use messageDeduplicationId, messageGroupId for fifo sns.

sendEvents(eventType, event, ids, body, correlationId, options) ⇒ Promise

Sending events to a topic in batch request

Kind: global function
Returns: Promise - .
Category: async
Requires: module:@mimik/sumologic-winston-logger
Fulfil: Return null.

ParamTypeDescription
eventTypestringType of event to be sent.
eventstringEvent to be sent.
idsobjectarray of id objects containing id of the users associated with the events.
bodyobjectbody to add to the event to be sent.
correlationIdstringCorrelation id associated with the events to be sent.
optionsobjectOptions associated with the call. Use to apply metrics. Can use messageDeduplicationIds, messageGroupIds for fifo sns.
1.4.6

11 months ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.2.9

3 years ago

1.3.0

2 years ago

1.2.8

3 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago