Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EventData

Package version

The interface that describes the data to be sent to Event Hub. Use this as a reference when creating the object to be sent when using the EventHubProducerClient. For example, { body: "your-data" } or

{
   body: "your-data",
   properties: {
      propertyName: "property value"
   }
}

Hierarchy

  • EventData

Index

Properties

body

body: any

The message body that needs to be sent. If the application reading the events is not using this SDK, convert your body payload to a byte array or Buffer for better cross-language compatibility.

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.

Optional messageId

messageId: string | number | Buffer

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

Note: Numbers that are not whole integers are not allowed.

Optional properties

properties: undefined | {}

Set of key value pairs that can be used to set properties specific to user application.

Generated using TypeDoc