KafkaEvent Class
A concrete implementation of Kafka event message type.
Constructor
KafkaEvent(*, body: bytes, trigger_metadata: Mapping[str, Datum] | None = None, key: str | None = None, offset: int | None = None, partition: int | None = None, topic: str | None = None, timestamp: str | None = None, headers: list | None = None)
Keyword-Only Parameters
Name | Description |
---|---|
body
Required
|
|
trigger_metadata
Required
|
|
key
Required
|
|
offset
Required
|
|
partition
Required
|
|
topic
Required
|
|
timestamp
Required
|
|
headers
Required
|
|
Methods
get_body |
get_body
get_body() -> bytes
Attributes
headers
key
metadata
offset
partition
timestamp
topic
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for Python