SendCloudEventInput interface

  • The shape of the input for EventGridProducerClient#sendCloudEvents

Properties

data

Event data specific to the event type.

datacontenttype

Content type of data value.

dataschema

Identifies the schema that data adheres to.

extensionAttributes

Additional context attributes for the event. The Cloud Event specification refers to these as "extension attributes".

id

An identifier for the event. The combination of id and source must be unique for each distinct event. If an ID is not provided, a random UUID will be generated and used.

source

Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event.

subject

This describes the subject of the event in the context of the event producer (identified by source).

time

The time the event was generated. If not provided, the current time will be used.

type

Type of event related to the originating occurrence.

Property Details

data

Event data specific to the event type.

data?: T

Property Value

T

datacontenttype

Content type of data value.

datacontenttype?: string

Property Value

string

dataschema

Identifies the schema that data adheres to.

dataschema?: string

Property Value

string

extensionAttributes

Additional context attributes for the event. The Cloud Event specification refers to these as "extension attributes".

extensionAttributes?: Record<string, unknown>

Property Value

Record<string, unknown>

id

An identifier for the event. The combination of id and source must be unique for each distinct event. If an ID is not provided, a random UUID will be generated and used.

id?: string

Property Value

string

source

Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event.

source: string

Property Value

string

subject

This describes the subject of the event in the context of the event producer (identified by source).

subject?: string

Property Value

string

time

The time the event was generated. If not provided, the current time will be used.

time?: Date

Property Value

Date

type

Type of event related to the originating occurrence.

type: string

Property Value

string