Skip to content

aws.iotsitewise.describe_asset_model

Example SQL Queries

SELECT * FROM
aws.iotsitewise.describe_asset_model
WHERE
"asset_model_id" = 'VALUE';

Description

Retrieves information about an asset model.

Table Definition

Column NameColumn Data Type
asset_model_id Required Input Column

The ID of the asset model, in UUID format.

VARCHAR
exclude_properties Input Column

Whether or not to exclude asset model properties from the response.

BOOLEAN
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
asset_model_arn

The ARN of the asset model, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}

VARCHAR
asset_model_composite_model_summaries

The list of the immediate child custom composite model summaries for the asset model.

STRUCT(
"id" VARCHAR,
"external_id" VARCHAR,
"name" VARCHAR,
"type" VARCHAR,
"description" VARCHAR,
"path" STRUCT(
"id" VARCHAR,
"name" VARCHAR
)[]
)[]
Show child fields
asset_model_composite_model_summaries[]
Show child fields
asset_model_composite_model_summaries[].description

The description of the composite model that this summary describes..

asset_model_composite_model_summaries[].external_id

The external ID of a composite model on this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.

asset_model_composite_model_summaries[].id

The ID of the composite model that this summary describes..

asset_model_composite_model_summaries[].name

The name of the composite model that this summary describes..

asset_model_composite_model_summaries[].path[]
Show child fields
asset_model_composite_model_summaries[].path[].id

The ID of the path segment.

asset_model_composite_model_summaries[].path[].name

The name of the path segment.

asset_model_composite_model_summaries[].type

The composite model type. Valid values are AWS/ALARM, CUSTOM, or AWS/L4E_ANOMALY.

asset_model_composite_models

The list of built-in composite models for the asset model, such as those with those of type AWS/ALARMS.

STRUCT(
"name" VARCHAR,
"description" VARCHAR,
"type" VARCHAR,
"properties" STRUCT(
"id" VARCHAR,
"name" VARCHAR,
"data_type" VARCHAR,
"data_type_spec" VARCHAR,
"unit" VARCHAR,
"type" STRUCT(
"attribute" STRUCT(
"default_value" VARCHAR
),
"measurement" STRUCT(
"processing_config" STRUCT(
"forwarding_config" STRUCT(
"state" VARCHAR
)
)
),
"transform" STRUCT(
"expression" VARCHAR,
"variables" STRUCT(
"name" VARCHAR,
"value" STRUCT(
"property_id" VARCHAR,
"hierarchy_id" VARCHAR,
"property_path" STRUCT(
"id" VARCHAR,
"name" VARCHAR
)[]
)
)[],
"processing_config" STRUCT(
"compute_location" VARCHAR,
"forwarding_config" STRUCT(
"state" VARCHAR
)
)
),
"metric" STRUCT(
"expression" VARCHAR,
"variables" STRUCT(
"name" VARCHAR,
"value" STRUCT(
"property_id" VARCHAR,
"hierarchy_id" VARCHAR,
"property_path" STRUCT(
"id" VARCHAR,
"name" VARCHAR
)[]
)
)[],
"window" STRUCT(
"tumbling" STRUCT(
"interval" VARCHAR,
"offset" VARCHAR
)
),
"processing_config" STRUCT(
"compute_location" VARCHAR
)
)
),
"path" STRUCT(
"id" VARCHAR,
"name" VARCHAR
)[],
"external_id" VARCHAR
)[],
"id" VARCHAR,
"external_id" VARCHAR
)[]
Show child fields
asset_model_composite_models[]
Show child fields
asset_model_composite_models[].description

The description of the composite model.

asset_model_composite_models[].external_id

The external ID of the asset model composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.

asset_model_composite_models[].id

The ID of the asset model composite model.

asset_model_composite_models[].name

The name of the composite model.

asset_model_composite_models[].properties[]
Show child fields
asset_model_composite_models[].properties[].data_type

The data type of the asset model property.

asset_model_composite_models[].properties[].data_type_spec

The data type of the structure for this property. This parameter exists on properties that have the STRUCT data type.

asset_model_composite_models[].properties[].external_id

The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.

asset_model_composite_models[].properties[].id

The ID of the asset model property.

  • If you are callling UpdateAssetModel to create a new property: You can specify its ID here, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.

  • If you are calling UpdateAssetModel to modify an existing property: This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.

asset_model_composite_models[].properties[].name

The name of the asset model property.

asset_model_composite_models[].properties[].path[]
Show child fields
asset_model_composite_models[].properties[].path[].id

The ID of the path segment.

asset_model_composite_models[].properties[].path[].name

The name of the path segment.

asset_model_composite_models[].properties[].type

The property type (see PropertyType).

Show child fields
asset_model_composite_models[].properties[].type.attribute

Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.

Show child fields
asset_model_composite_models[].properties[].type.attribute.default_value

The default value of the asset model property attribute. All assets that you create from the asset model contain this attribute value. You can update an attribute's value after you create an asset. For more information, see Updating attribute values in the IoT SiteWise User Guide.

asset_model_composite_models[].properties[].type.measurement

Specifies an asset measurement property. A measurement represents a device's raw sensor data stream, such as timestamped temperature values or timestamped power values.

Show child fields
asset_model_composite_models[].properties[].type.measurement.processing_config

The processing configuration for the given measurement property. You can configure measurements to be kept at the edge or forwarded to the Amazon Web Services Cloud. By default, measurements are forwarded to the cloud.

Show child fields
asset_model_composite_models[].properties[].type.measurement.processing_config.forwarding_config

The forwarding configuration for the given measurement property.

Show child fields
asset_model_composite_models[].properties[].type.measurement.processing_config.forwarding_config.state

The forwarding state for the given property.

asset_model_composite_models[].properties[].type.metric

Specifies an asset metric property. A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.

Show child fields
asset_model_composite_models[].properties[].type.metric.expression

The mathematical expression that defines the metric aggregation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.

For more information, see Quotas in the IoT SiteWise User Guide.

asset_model_composite_models[].properties[].type.metric.processing_config

The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.

Show child fields
asset_model_composite_models[].properties[].type.metric.processing_config.compute_location

The compute location for the given metric property.

asset_model_composite_models[].properties[].type.metric.variables[]
Show child fields
asset_model_composite_models[].properties[].type.metric.variables[].name

The friendly name of the variable to be used in the expression.

asset_model_composite_models[].properties[].type.metric.variables[].value

The variable that identifies an asset property from which to use values.

Show child fields
asset_model_composite_models[].properties[].type.metric.variables[].value.hierarchy_id

The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.

You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same propertyId. For example, you might have separately grouped assets that come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.

asset_model_composite_models[].properties[].type.metric.variables[].value.property_id

The ID of the property to use as the variable. You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.

asset_model_composite_models[].properties[].type.metric.variables[].value.property_path[]
Show child fields
asset_model_composite_models[].properties[].type.metric.variables[].value.property_path[].id

The ID of the path segment.

asset_model_composite_models[].properties[].type.metric.variables[].value.property_path[].name

The name of the path segment.

asset_model_composite_models[].properties[].type.metric.window

The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point per window.

Show child fields
asset_model_composite_models[].properties[].type.metric.window.tumbling

The tumbling time interval window.

Show child fields
asset_model_composite_models[].properties[].type.metric.window.tumbling.interval

The time interval for the tumbling window. The interval time must be between 1 minute and 1 week.

IoT SiteWise computes the 1w interval the end of Sunday at midnight each week (UTC), the 1d interval at the end of each day at midnight (UTC), the 1h interval at the end of each hour, and so on.

When IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the end of each interval is inclusive. IoT SiteWise places the computed data point at the end of the interval.

asset_model_composite_models[].properties[].type.metric.window.tumbling.offset

The offset for the tumbling window. The offset parameter accepts the following:

  • The offset time.

    For example, if you specify 18h for offset and 1d for interval, IoT SiteWise aggregates data in one of the following ways:

    • If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.

    • If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.

  • The ISO 8601 format.

    For example, if you specify PT18H for offset and 1d for interval, IoT SiteWise aggregates data in one of the following ways:

    • If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.

    • If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.

  • The 24-hour clock.

    For example, if you specify 00:03:00 for offset, 5m for interval, and you create the metric at 2 PM (UTC), you get the first aggregation result at 2:03 PM (UTC). You get the second aggregation result at 2:08 PM (UTC).

  • The offset time zone.

    For example, if you specify 2021-07-23T18:00-08 for offset and 1d for interval, IoT SiteWise aggregates data in one of the following ways:

    • If you create the metric before or at 6 PM (PST), you get the first aggregation result at 6 PM (PST) on the day when you create the metric.

    • If you create the metric after 6 PM (PST), you get the first aggregation result at 6 PM (PST) the next day.

asset_model_composite_models[].properties[].type.transform

Specifies an asset transform property. A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.

Show child fields
asset_model_composite_models[].properties[].type.transform.expression

The mathematical expression that defines the transformation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.

For more information, see Quotas in the IoT SiteWise User Guide.

asset_model_composite_models[].properties[].type.transform.processing_config

The processing configuration for the given transform property. You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. You can also configure transforms to be computed at the edge or in the cloud.

Show child fields
asset_model_composite_models[].properties[].type.transform.processing_config.compute_location

The compute location for the given transform property.

asset_model_composite_models[].properties[].type.transform.processing_config.forwarding_config

The forwarding configuration for a given property.

Show child fields
asset_model_composite_models[].properties[].type.transform.processing_config.forwarding_config.state

The forwarding state for the given property.

asset_model_composite_models[].properties[].type.transform.variables[]
Show child fields
asset_model_composite_models[].properties[].type.transform.variables[].name

The friendly name of the variable to be used in the expression.

asset_model_composite_models[].properties[].type.transform.variables[].value

The variable that identifies an asset property from which to use values.

Show child fields
asset_model_composite_models[].properties[].type.transform.variables[].value.hierarchy_id

The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.

You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same propertyId. For example, you might have separately grouped assets that come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.

asset_model_composite_models[].properties[].type.transform.variables[].value.property_id

The ID of the property to use as the variable. You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.

asset_model_composite_models[].properties[].type.transform.variables[].value.property_path[]
Show child fields
asset_model_composite_models[].properties[].type.transform.variables[].value.property_path[].id

The ID of the path segment.

asset_model_composite_models[].properties[].type.transform.variables[].value.property_path[].name

The name of the path segment.

asset_model_composite_models[].properties[].unit

The unit of the asset model property, such as Newtons or RPM.

asset_model_composite_models[].type

The type of the composite model. For alarm composite models, this type is AWS/ALARM.

asset_model_creation_date

The date the asset model was created, in Unix epoch time.

TIMESTAMP_S
asset_model_description

The asset model's description.

VARCHAR
asset_model_external_id

The external ID of the asset model, if any.

VARCHAR
asset_model_hierarchies

A list of asset model hierarchies that each contain a childAssetModelId and a hierarchyId (named id). A hierarchy specifies allowed parent/child asset relationships for an asset model.

STRUCT(
"id" VARCHAR,
"name" VARCHAR,
"child_asset_model_id" VARCHAR,
"external_id" VARCHAR
)[]
Show child fields
asset_model_hierarchies[]
Show child fields
asset_model_hierarchies[].child_asset_model_id

The ID of the asset model, in UUID format. All assets in this hierarchy must be instances of the childAssetModelId asset model. IoT SiteWise will always return the actual asset model ID for this value. However, when you are specifying this value as part of a call to UpdateAssetModel, you may provide either the asset model ID or else externalId: followed by the asset model's external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.

asset_model_hierarchies[].external_id

The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.

asset_model_hierarchies[].id

The ID of the asset model hierarchy. This ID is a hierarchyId.

  • If you are callling UpdateAssetModel to create a new hierarchy: You can specify its ID here, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.

  • If you are calling UpdateAssetModel to modify an existing hierarchy: This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.

asset_model_hierarchies[].name

The name of the asset model hierarchy that you specify by using the CreateAssetModel or UpdateAssetModel API operation.

asset_model_last_update_date

The date the asset model was last updated, in Unix epoch time.

TIMESTAMP_S
asset_model_name

The name of the asset model.

VARCHAR
asset_model_properties

The list of asset properties for the asset model.

This object doesn't include properties that you define in composite models. You can find composite model properties in the assetModelCompositeModels object.

STRUCT(
"id" VARCHAR,
"name" VARCHAR,
"data_type" VARCHAR,
"data_type_spec" VARCHAR,
"unit" VARCHAR,
"type" STRUCT(
"attribute" STRUCT(
"default_value" VARCHAR
),
"measurement" STRUCT(
"processing_config" STRUCT(
"forwarding_config" STRUCT(
"state" VARCHAR
)
)
),
"transform" STRUCT(
"expression" VARCHAR,
"variables" STRUCT(
"name" VARCHAR,
"value" STRUCT(
"property_id" VARCHAR,
"hierarchy_id" VARCHAR,
"property_path" STRUCT(
"id" VARCHAR,
"name" VARCHAR
)[]
)
)[],
"processing_config" STRUCT(
"compute_location" VARCHAR,
"forwarding_config" STRUCT(
"state" VARCHAR
)
)
),
"metric" STRUCT(
"expression" VARCHAR,
"variables" STRUCT(
"name" VARCHAR,
"value" STRUCT(
"property_id" VARCHAR,
"hierarchy_id" VARCHAR,
"property_path" STRUCT(
"id" VARCHAR,
"name" VARCHAR
)[]
)
)[],
"window" STRUCT(
"tumbling" STRUCT(
"interval" VARCHAR,
"offset" VARCHAR
)
),
"processing_config" STRUCT(
"compute_location" VARCHAR
)
)
),
"path" STRUCT(
"id" VARCHAR,
"name" VARCHAR
)[],
"external_id" VARCHAR
)[]
Show child fields
asset_model_properties[]
Show child fields
asset_model_properties[].data_type

The data type of the asset model property.

asset_model_properties[].data_type_spec

The data type of the structure for this property. This parameter exists on properties that have the STRUCT data type.

asset_model_properties[].external_id

The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.

asset_model_properties[].id

The ID of the asset model property.

  • If you are callling UpdateAssetModel to create a new property: You can specify its ID here, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.

  • If you are calling UpdateAssetModel to modify an existing property: This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.

asset_model_properties[].name

The name of the asset model property.

asset_model_properties[].path[]
Show child fields
asset_model_properties[].path[].id

The ID of the path segment.

asset_model_properties[].path[].name

The name of the path segment.

asset_model_properties[].type

The property type (see PropertyType).

Show child fields
asset_model_properties[].type.attribute

Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.

Show child fields
asset_model_properties[].type.attribute.default_value

The default value of the asset model property attribute. All assets that you create from the asset model contain this attribute value. You can update an attribute's value after you create an asset. For more information, see Updating attribute values in the IoT SiteWise User Guide.

asset_model_properties[].type.measurement

Specifies an asset measurement property. A measurement represents a device's raw sensor data stream, such as timestamped temperature values or timestamped power values.

Show child fields
asset_model_properties[].type.measurement.processing_config

The processing configuration for the given measurement property. You can configure measurements to be kept at the edge or forwarded to the Amazon Web Services Cloud. By default, measurements are forwarded to the cloud.

Show child fields
asset_model_properties[].type.measurement.processing_config.forwarding_config

The forwarding configuration for the given measurement property.

Show child fields
asset_model_properties[].type.measurement.processing_config.forwarding_config.state

The forwarding state for the given property.

asset_model_properties[].type.metric

Specifies an asset metric property. A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.

Show child fields
asset_model_properties[].type.metric.expression

The mathematical expression that defines the metric aggregation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.

For more information, see Quotas in the IoT SiteWise User Guide.

asset_model_properties[].type.metric.processing_config

The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.

Show child fields
asset_model_properties[].type.metric.processing_config.compute_location

The compute location for the given metric property.

asset_model_properties[].type.metric.variables[]
Show child fields
asset_model_properties[].type.metric.variables[].name

The friendly name of the variable to be used in the expression.

asset_model_properties[].type.metric.variables[].value

The variable that identifies an asset property from which to use values.

Show child fields
asset_model_properties[].type.metric.variables[].value.hierarchy_id

The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.

You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same propertyId. For example, you might have separately grouped assets that come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.

asset_model_properties[].type.metric.variables[].value.property_id

The ID of the property to use as the variable. You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.

asset_model_properties[].type.metric.variables[].value.property_path[]
Show child fields
asset_model_properties[].type.metric.variables[].value.property_path[].id

The ID of the path segment.

asset_model_properties[].type.metric.variables[].value.property_path[].name

The name of the path segment.

asset_model_properties[].type.metric.window

The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point per window.

Show child fields
asset_model_properties[].type.metric.window.tumbling

The tumbling time interval window.

Show child fields
asset_model_properties[].type.metric.window.tumbling.interval

The time interval for the tumbling window. The interval time must be between 1 minute and 1 week.

IoT SiteWise computes the 1w interval the end of Sunday at midnight each week (UTC), the 1d interval at the end of each day at midnight (UTC), the 1h interval at the end of each hour, and so on.

When IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the end of each interval is inclusive. IoT SiteWise places the computed data point at the end of the interval.

asset_model_properties[].type.metric.window.tumbling.offset

The offset for the tumbling window. The offset parameter accepts the following:

  • The offset time.

    For example, if you specify 18h for offset and 1d for interval, IoT SiteWise aggregates data in one of the following ways:

    • If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.

    • If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.

  • The ISO 8601 format.

    For example, if you specify PT18H for offset and 1d for interval, IoT SiteWise aggregates data in one of the following ways:

    • If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.

    • If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.

  • The 24-hour clock.

    For example, if you specify 00:03:00 for offset, 5m for interval, and you create the metric at 2 PM (UTC), you get the first aggregation result at 2:03 PM (UTC). You get the second aggregation result at 2:08 PM (UTC).

  • The offset time zone.

    For example, if you specify 2021-07-23T18:00-08 for offset and 1d for interval, IoT SiteWise aggregates data in one of the following ways:

    • If you create the metric before or at 6 PM (PST), you get the first aggregation result at 6 PM (PST) on the day when you create the metric.

    • If you create the metric after 6 PM (PST), you get the first aggregation result at 6 PM (PST) the next day.

asset_model_properties[].type.transform

Specifies an asset transform property. A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.

Show child fields
asset_model_properties[].type.transform.expression

The mathematical expression that defines the transformation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.

For more information, see Quotas in the IoT SiteWise User Guide.

asset_model_properties[].type.transform.processing_config

The processing configuration for the given transform property. You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. You can also configure transforms to be computed at the edge or in the cloud.

Show child fields
asset_model_properties[].type.transform.processing_config.compute_location

The compute location for the given transform property.

asset_model_properties[].type.transform.processing_config.forwarding_config

The forwarding configuration for a given property.

Show child fields
asset_model_properties[].type.transform.processing_config.forwarding_config.state

The forwarding state for the given property.

asset_model_properties[].type.transform.variables[]
Show child fields
asset_model_properties[].type.transform.variables[].name

The friendly name of the variable to be used in the expression.

asset_model_properties[].type.transform.variables[].value

The variable that identifies an asset property from which to use values.

Show child fields
asset_model_properties[].type.transform.variables[].value.hierarchy_id

The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.

You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same propertyId. For example, you might have separately grouped assets that come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.

asset_model_properties[].type.transform.variables[].value.property_id

The ID of the property to use as the variable. You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.

asset_model_properties[].type.transform.variables[].value.property_path[]
Show child fields
asset_model_properties[].type.transform.variables[].value.property_path[].id

The ID of the path segment.

asset_model_properties[].type.transform.variables[].value.property_path[].name

The name of the path segment.

asset_model_properties[].unit

The unit of the asset model property, such as Newtons or RPM.

asset_model_status

The current status of the asset model, which contains a state and any error message.

STRUCT(
"state" VARCHAR,
"error" STRUCT(
"code" VARCHAR,
"message" VARCHAR,
"details" STRUCT(
"code" VARCHAR,
"message" VARCHAR
)[]
)
)
Show child fields
asset_model_status.error

Contains associated error information, if any.

Show child fields
asset_model_status.error.code

The error code.

asset_model_status.error.details[]
Show child fields
asset_model_status.error.details[].code

The error code.

asset_model_status.error.details[].message

The error message.

asset_model_status.error.message

The error message.

asset_model_status.state

The current state of the asset model.

asset_model_type

The type of asset model.

  • ASSET_MODEL – (default) An asset model that you can use to create assets. Can't be included as a component in another asset model.

  • COMPONENT_MODEL – A reusable component that you can include in the composite models of other asset models. You can't create assets directly from this type of asset model.

VARCHAR