Hi there! I'm trying to write an Azure function triggered by EventHub. My function looks like this:
@FunctionName("eventHubMonitor")
fun run(
@EventHubTrigger(
name = "event",
eventHubName = "eventhub",
connection = "AzureEventHubConnection"
) message: String,
context: ExecutionContext
) {
context.logger.info("Event trigger processed a ${message} request.")
}
In the message I only get the body of the event. I have important information in SystemProperties of the event that I need to read as well. How can I read those?
Hi there! I'm trying to write an Azure function triggered by EventHub. My function looks like this:
In the message I only get the body of the event. I have important information in
SystemProperties
of the event that I need to read as well. How can I read those?Thank you so much in advance <3