404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.217.203.133: ~ $
**To create an asset model**

The following ``create-asset-model`` example creates an asset model that defines a wind turbine with the following properties:

- Serial number - The serial number of a wind turbine
- Generated power - The generated power data stream from a wind turbine
- Temperature C - The temperature data stream from a wind turbine in Celsius
- Temperature F - The mapped temperature data points from Celsius to Fahrenheit

::

    aws iotsitewise create-asset-model \
        --cli-input-json file://create-wind-turbine-model.json

Contents of ``create-wind-turbine-model.json``::

    {
        "assetModelName": "Wind Turbine Model",
        "assetModelDescription": "Represents a wind turbine",
        "assetModelProperties": [
            {
                "name": "Serial Number",
                "dataType": "STRING",
                "type": {
                    "attribute": {}
                }
            },
            {
                "name": "Generated Power",
                "dataType": "DOUBLE",
                "unit": "kW",
                "type": {
                    "measurement": {}
                }
            },
            {
                "name": "Temperature C",
                "dataType": "DOUBLE",
                "unit": "Celsius",
                "type": {
                    "measurement": {}
                }
            },
            {
                "name": "Temperature F",
                "dataType": "DOUBLE",
                "unit": "Fahrenheit",
                "type": {
                    "transform": {
                        "expression": "temp_c * 9 / 5 + 32",
                        "variables": [
                            {
                                "name": "temp_c",
                                "value": {
                                    "propertyId": "Temperature C"
                                }
                            }
                        ]
                    }
                }
            },
            {
                "name": "Total Generated Power",
                "dataType": "DOUBLE",
                "unit": "kW",
                "type": {
                    "metric": {
                        "expression": "sum(power)",
                        "variables": [
                            {
                                "name": "power",
                                "value": {
                                    "propertyId": "Generated Power"
                                }
                            }
                        ],
                        "window": {
                            "tumbling": {
                                "interval": "1h"
                            }
                        }
                    }
                }
            }
        ]
    }

Output::

    {
        "assetModelId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
        "assetModelArn": "arn:aws:iotsitewise:us-west-2:123456789012:asset-model/a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
        "assetModelStatus": {
            "state": "CREATING"
        }
    }

For more information, see `Defining asset models <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/define-models.html>`__ in the *AWS IoT SiteWise User Guide*.

Filemanager

Name Type Size Permission Actions
wait Folder 0755
associate-assets.rst File 678 B 0644
batch-associate-project-assets.rst File 557 B 0644
batch-disassociate-project-assets.rst File 573 B 0644
batch-put-asset-property-value.rst File 1.72 KB 0644
create-access-policy.rst File 2.35 KB 0644
create-asset-model.rst File 3.29 KB 0644
create-asset.rst File 705 B 0644
create-dashboard.rst File 1.42 KB 0644
create-gateway.rst File 733 B 0644
create-portal.rst File 1.29 KB 0644
create-project.rst File 724 B 0644
delete-access-policy.rst File 548 B 0644
delete-asset-model.rst File 528 B 0644
delete-asset.rst File 481 B 0644
delete-dashboard.rst File 435 B 0644
delete-gateway.rst File 400 B 0644
delete-portal.rst File 504 B 0644
delete-project.rst File 418 B 0644
describe-access-policy.rst File 1.22 KB 0644
describe-asset-model.rst File 2.53 KB 0644
describe-asset-property.rst File 1.87 KB 0644
describe-asset.rst File 1.42 KB 0644
describe-dashboard.rst File 1.16 KB 0644
describe-gateway-capability-configuration.rst File 1.17 KB 0644
describe-gateway.rst File 1.1 KB 0644
describe-logging-options.rst File 577 B 0644
describe-portal.rst File 1.2 KB 0644
describe-project.rst File 937 B 0644
disassociate-assets.rst File 607 B 0644
get-asset-property-aggregates.rst File 1.05 KB 0644
get-asset-property-value-history.rst File 1.94 KB 0644
get-asset-property-value.rst File 856 B 0644
list-access-policies.rst File 1.04 KB 0644
list-asset-models.rst File 1.51 KB 0644
list-assets.rst File 2.29 KB 0644
list-associated-assets.rst File 1.18 KB 0644
list-dashboards.rst File 762 B 0644
list-gateways.rst File 939 B 0644
list-portals.rst File 998 B 0644
list-project-assets.rst File 573 B 0644
list-projects.rst File 861 B 0644
list-tags-for-resource.rst File 556 B 0644
put-logging-options.rst File 518 B 0644
tag-resource.rst File 575 B 0644
untag-resource.rst File 517 B 0644
update-access-policy.rst File 1.02 KB 0644
update-asset-model.rst File 2.57 KB 0644
update-asset-property.rst File 1.59 KB 0644
update-asset.rst File 536 B 0644
update-dashboard.rst File 1.27 KB 0644
update-gateway-capability-configuration.rst File 1.79 KB 0644
update-gateway.rst File 460 B 0644
update-portal.rst File 772 B 0644
update-project.rst File 580 B 0644