-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Azure/azure-functions-python-library
#42Labels
Milestone
Description
I followed the example code in Eventhub triggerred Azure function in python. However, I got None
for event enqueue time, offset, and etc.
import logging
import azure.functions as func
def main(event: func.EventHubEvent):
logging.info('Function triggered to process a message: ', event.get_body())
logging.info(' EnqueuedTimeUtc =', event.enqueued_time)
logging.info(' SequenceNumber =', event.sequence_number)
logging.info(' Offset =', event.offset)
EnqueuedTimeUtc, SequenceNumber, Offset are all None
.
event.getbody()
return the right payload I sent to evetnhub. Do I need to modify the payload I sent to eventhub to get the EnqueuedTimeUtc and other metadata?