Step 5: Creating and configuring a device asset
In this procedure, you generate a device asset that's based on your device asset model. Then, you define property aliases for each measurement property. A property alias is a unique string that identifies an asset property. Later, you can identify a property for data upload by using the aliases instead of the asset ID and property ID. For more information, see Mapping industrial data streams to asset properties.
To create a device asset and define property aliases
-
Navigate to the Amazon IoT SiteWise console
. -
In the left navigation pane, choose Assets.
-
Choose Create asset.
-
Under Model information, choose your device asset model,
SiteWise Tutorial Device Model
. -
Under Asset information, enter a name for your asset. For example,
SiteWise Tutorial Device 1
. -
Choose Create asset.
-
For your new device asset, choose Edit.
-
Under CPU Usage, enter
/tutorial/device/SiteWiseTutorialDevice1/cpu
as the property alias. You include the Amazon IoT thing's name in the property alias, so that you can ingest data from all of your devices using a single Amazon IoT rule. -
Under Memory Usage, enter
/tutorial/device/SiteWiseTutorialDevice1/memory
as the property alias. -
Choose Save.
If you created multiple Amazon IoT things earlier, repeat steps 3 through 10 for each device, and
increment the number in the asset name and property aliases accordingly. For example, the second
device asset's name should be SiteWise Tutorial Device 2
, and its property aliases
should be /tutorial/device/SiteWiseTutorialDevice2/cpu
, and
/tutorial/device/SiteWiseTutorialDevice2/memory
.