KafkaEvent Class

A concrete implementation of Kafka event message type.

Inheritance
azure.functions._kafka.AbstractKafkaEvent
KafkaEvent

Constructor

KafkaEvent(*, body: bytes, trigger_metadata: Mapping[str, Datum] = None, key: str | None = None, offset: int | None = None, partition: int | None = None, topic: str | None = None, timestamp: str | None = None)

Keyword-Only Parameters

Name Description
body
Required
trigger_metadata
Required
key
Required
offset
Required
partition
Required
topic
Required
timestamp
Required

Methods

get_body

get_body

get_body() -> bytes

Attributes

key

metadata

offset

partition

timestamp

topic