KafkaEvent Class
A concrete implementation of Kafka event message type.
- Inheritance
-
azure.functions._kafka.AbstractKafkaEventKafkaEvent
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python