Skip to content

Instantly share code, notes, and snippets.

@apremalal
Created May 3, 2015 18:32
Show Gist options
  • Save apremalal/dedbe4f34544137039dd to your computer and use it in GitHub Desktop.
Save apremalal/dedbe4f34544137039dd to your computer and use it in GitHub Desktop.
<eventBuilder>
<from eventAdaptorName="httpInputAdaptor" eventAdaptorType="http">
<property name="topic">locationInStream</property>
</from>
<mapping customMapping="enable" type="json">
<property>
<from jsonPath="$.properties.timestamp" />
<to default="0" name="correlation_timeStamp" type="string" />
</property>
<property>
<from jsonPath="$.properties.deviceid" />
<to default="0" name="deviceId" type="string" />
</property>
<property>
<from jsonPath="$.geometry.coordinates[0]" />
<to default="0.0" name="lattitude" type="double" />
</property>
<property>
<from jsonPath="$.geometry.coordinates[1]" />
<to default="0.0" name="longitude" type="double" />
</property>
</mapping>
<to streamName="locationDataInputStream" version="1.0.0" />
</eventBuilder>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment