Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReceivedEventData

Package version

The interface that describes the structure of the event received from Event Hub. Use this as a reference when creating the processEvents function to process the events recieved from an Event Hub when using the EventHubConsumerClient.

Hierarchy

  • ReceivedEventData

Index

Properties

body

body: any

The message body that needs to be sent or is received.

Optional contentType

contentType: undefined | string

The content type of the message. Optionally describes the payload of the message, with a descriptor following the format of RFC2045, Section 5, for example "application/json".

Optional correlationId

correlationId: string | number | Buffer

The correlation identifier that allows an application to specify a context for the message for the purposes of correlation, for example reflecting the MessageId of a message that is being replied to.

enqueuedTimeUtc

enqueuedTimeUtc: Date

The enqueued time of the event.

Optional messageId

messageId: string | number | Buffer

The message identifier is an application-defined value that uniquely identifies the message and its payload.

offset

offset: number

The offset of the event.

partitionKey

partitionKey: string | null

When specified Event Hub will hash this to a partitionId. It guarantees that messages end up in a specific partition on the event hub.

Optional properties

properties: undefined | {}

The application specific properties.

sequenceNumber

sequenceNumber: number

The sequence number of the event.

Optional systemProperties

systemProperties: undefined | {}

The properties set by the service.

Methods

getRawAmqpMessage

  • getRawAmqpMessage(): AmqpAnnotatedMessage
  • Returns the underlying raw amqp message.

    Returns AmqpAnnotatedMessage

Generated using TypeDoc