Simulates a message being sent from the Streaming Azure function or Pipeline.
-
EVENT_HUB_CONNECTION_STRING [REQUIRED]: The connection string for Azure Event Hub.
-
EVENT_HUB_NAME [REQUIRED]: The name of the Event Hub where the event will be sent.
-
EVENT_DETAILS_FILE [REQUIRED]: The file that contains the list of events that will be sent to the Event Hub.
-
EVENT_TYPE [REQUIRED]: The type of event that will is being sent to Event Hub. The event type can be one of the following:
-
1: Streaming Data Event Changed V1
-
2: Streaming Event Processed V1
NOTE: The event type should be a number and should not be surrounded in quotes.
-
The file for Streaming Data Event Changed V1 should contain the following content.
[
{
"MachineId": "1",
"Temperature": 20,
"Humidity": 30
}
]Where:
- MachineId [REQUIRED]: The unique identifier of the machine.
- Temperature [REQUIRED]: The temperature of the machine.
- Humidity [REQUIRED]: The humidity of the machine.
NOTE: This payload should only have one event to mimic the expected behavior from the Streaming Azure function or pipeline.
The file for Streaming Data Event Processed V1 should contain the following content.
[
{
"MachineId": "1",
"Temperature": 20,
"Humidity": 30
}
]Where:
- MachineId [REQUIRED]: The unique identifier of the machine.
- Temperature [REQUIRED]: The temperature of the machine.
- Humidity [REQUIRED]: The humidity of the machine.
NOTE: This payload should only have one event to mimic the expected behavior from the Streaming Azure function or pipeline.
To copy start with the sample configuration:
cp sample.local.settings.json local.settings.jsonTo run the Program:
dotnet run