...
Property name | Description | Example value | Azure Portal Screenshot |
---|---|---|---|
eventHubCompatiblePath | Event HUB compatible name that can be used to access the IoT Hub over AMQPS | iothub-ehub-delft-fews-3109254-e665c23b62 | AzureIotHub-Built-inendpoint |
consumersGroup | An event heb can have different consumer groups. Specify the used consumer group here. | $Default | AzureIotHub-Built-inendpoint |
eventHubCompatibleHostname | Event hub compatible hostname that can be used to access the IoT Hub over AMQPS | ihsuprodamres086dednamespace.servicebus.windows.net | AzureIotHub-Built-inendpoint |
numberOfPartitions | For scalability an event hub can be partitioned. The number of partitions used have to be specified here. | 2 | AzureIotHub-Built-inendpoint |
sharedAccessPolicyName | Name of the SAS policy that is used for authentication agains the IoT Hub. | service | AzureIotHub-SharedAccessPolicies |
sharedAccessPolicyKey | The actual policy key that can be used to authenticate against the IoT Hub. | V86dqC3AhjIqSgvAuShKDSsNamUJh5rJrqZ1e3hw7EA= | AzureIotHub-SharedAccessPolicies |
runningTimeMilliseconds | Optional property. Specifies how long the import will run in milliseconds. Default is one hour. Should only be changed for testing. | 120000 | not relevant |
readMessagesFromStart | Optional property. Used for testing to read all messages available in the event hub. This option will read already processed messages again. | false | not relevant |
Example Import Configuration
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?> <timeSeriesImportRun xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd"> <import> <general> <importType>AzureIotHub</importType> <serverUrl>https://delft-fews-iot-hub.azure-devices.net</serverUrl> <!-- Not actually used --> <relativeViewPeriod unit="day" start="-7" end="1" ></relativeViewPeriod> <missingValue>-99.99</missingValue> <dataFeedId>Azure IOT Hub</dataFeedId> <!-- data feed id is required for IOT hub --> </general> <properties> <string key="eventHubCompatiblePath" value="iothub-ehub-delft-fews-3109254-e665c23b62" /> <string key="consumersGroup" value="$Default" /> <string key="eventHubCompatibleHostname" value="ihsuprodamres086dednamespace.servicebus.windows.net" /> <string key="sharedAccessPolicyName" value="service" /> <string key="sharedAccessPolicyKey" value="V86dqC3AhjIqSgvAuShKDSsNamUJh5rJrqZ1e3hw7EA=" /> <int key="numberOfPartitions" value="2" /> <int key="runningTimeMilliseconds" value="120000" /> <!-- run for 2 minutes for testing. Overrules the default running time of one hour --> <!--int key="runningTimeMilliseconds" value="120000" /properties> --> <!-- used for testing. Read all available messages --> <!--bool key="readMessagesFromStart" value="true" /--> </properties> <timeSeriesSet> <moduleInstanceId>ImportObserved</moduleInstanceId> <valueType>scalar</valueType> <parameterId>T.obs</parameterId> <locationSetId>LocationSetId</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="nonequidistant"/> <readWriteMode>add originals</readWriteMode> <expiryTime unit="year" multiplier="1"/> </timeSeriesSet> </import> </timeSeriesImportRun> |
...