[ aws . iotsitewise ]
Retrieves information about an asset property.
Note
When you call this operation for an attribute property, this response includes the default attribute value that you define in the asset model. If you update the default value in the model, this operation’s response includes the new default value.
This operation doesn’t return the value of the asset property. To get the value of an asset property, use GetAssetPropertyValue .
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
describe-asset-property
--asset-id <value>
--property-id <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
--asset-id
(string)
The ID of the asset.
--property-id
(string)
The ID of the asset property.
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command.
See ‘aws help’ for descriptions of global parameters.
To describe an asset property
The following describe-asset-property
example describes a wind farm asset’s total generated power property.
aws iotsitewise describe-asset-property \
--asset-id a1b2c3d4-5678-90ab-cdef-44444EXAMPLE \
--property-id a1b2c3d4-5678-90ab-cdef-99999EXAMPLE
Output:
{
"assetId": "a1b2c3d4-5678-90ab-cdef-44444EXAMPLE",
"assetName": "Wind Farm 1",
"assetModelId": "a1b2c3d4-5678-90ab-cdef-22222EXAMPLE",
"assetProperty": {
"id": "a1b2c3d4-5678-90ab-cdef-99999EXAMPLE",
"name": "Total Generated Power",
"notification": {
"topic": "$aws/sitewise/asset-models/a1b2c3d4-5678-90ab-cdef-22222EXAMPLE/assets/a1b2c3d4-5678-90ab-cdef-44444EXAMPLE/properties/a1b2c3d4-5678-90ab-cdef-99999EXAMPLE",
"state": "DISABLED"
},
"dataType": "DOUBLE",
"unit": "kW",
"type": {
"metric": {
"expression": "sum(power)",
"variables": [
{
"name": "power",
"value": {
"propertyId": "a1b2c3d4-5678-90ab-cdef-66666EXAMPLE",
"hierarchyId": "a1b2c3d4-5678-90ab-cdef-77777EXAMPLE"
}
}
],
"window": {
"tumbling": {
"interval": "1h"
}
}
}
}
}
}
For more information, see Describing a specific asset property in the AWS IoT SiteWise User Guide.
assetId -> (string)
The ID of the asset.
assetName -> (string)
The name of the asset.
assetModelId -> (string)
The ID of the asset model.
assetProperty -> (structure)
The asset property’s definition, alias, and notification state.
This response includes this object for normal asset properties. If you describe an asset property in a composite model, this response includes the asset property information in
compositeModel
.id -> (string)
The ID of the asset property.
name -> (string)
The name of the property.
alias -> (string)
The property alias that identifies the property, such as an OPC-UA server data stream path (for example,
/company/windfarm/3/turbine/7/temperature
). For more information, see Mapping industrial data streams to asset properties in the AWS IoT SiteWise User Guide .notification -> (structure)
The asset property’s notification topic and state. For more information, see UpdateAssetProperty .
topic -> (string)
The MQTT topic to which AWS IoT SiteWise publishes property value update notifications.
state -> (string)
The current notification state.
dataType -> (string)
The property data type.
unit -> (string)
The unit (such as
Newtons
orRPM
) of the asset property.type -> (structure)
The property type (see
PropertyType
). A property contains one type.attribute -> (structure)
Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.
defaultValue -> (string)
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 AWS IoT SiteWise User Guide .
measurement -> (structure)
Specifies an asset measurement property. A measurement represents a device’s raw sensor data stream, such as timestamped temperature values or timestamped power values.
transform -> (structure)
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.
expression -> (string)
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 AWS IoT SiteWise User Guide .
variables -> (list)
The list of variables used in the expression.
(structure)
Contains expression variable information.
name -> (string)
The friendly name of the variable to be used in the expression.
value -> (structure)
The variable that identifies an asset property from which to use values.
propertyId -> (string)
The ID of the property to use as the variable. You can use the property
name
if it’s from the same asset model.hierarchyId -> (string)
The ID of the hierarchy to query for the property ID. You can use the hierarchy’s name instead of the hierarchy’s ID.
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 AWS IoT SiteWise User Guide .metric -> (structure)
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.
expression -> (string)
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 AWS IoT SiteWise User Guide .
variables -> (list)
The list of variables used in the expression.
(structure)
Contains expression variable information.
name -> (string)
The friendly name of the variable to be used in the expression.
value -> (structure)
The variable that identifies an asset property from which to use values.
propertyId -> (string)
The ID of the property to use as the variable. You can use the property
name
if it’s from the same asset model.hierarchyId -> (string)
The ID of the hierarchy to query for the property ID. You can use the hierarchy’s name instead of the hierarchy’s ID.
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 AWS IoT SiteWise User Guide .window -> (structure)
The window (time interval) over which AWS IoT SiteWise computes the metric’s aggregation expression. AWS IoT SiteWise computes one data point per
window
.tumbling -> (structure)
The tumbling time interval window.
interval -> (string)
The time interval for the tumbling window. Note that
w
represents weeks,d
represents days,h
represents hours, andm
represents minutes. AWS IoT SiteWise computes the1w
interval the end of Sunday at midnight each week (UTC), the1d
interval at the end of each day at midnight (UTC), the1h
interval at the end of each hour, and so on.When AWS IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the end of each interval is inclusive. AWS IoT SiteWise places the computed data point at the end of the interval.
compositeModel -> (structure)
The composite asset model that declares this asset property, if this asset property exists in a composite model.
name -> (string)
The name of the property.
type -> (string)
The type of the composite model that defines this property.
assetProperty -> (structure)
Contains asset property information.
id -> (string)
The ID of the asset property.
name -> (string)
The name of the property.
alias -> (string)
The property alias that identifies the property, such as an OPC-UA server data stream path (for example,
/company/windfarm/3/turbine/7/temperature
). For more information, see Mapping industrial data streams to asset properties in the AWS IoT SiteWise User Guide .notification -> (structure)
The asset property’s notification topic and state. For more information, see UpdateAssetProperty .
topic -> (string)
The MQTT topic to which AWS IoT SiteWise publishes property value update notifications.
state -> (string)
The current notification state.
dataType -> (string)
The property data type.
unit -> (string)
The unit (such as
Newtons
orRPM
) of the asset property.type -> (structure)
The property type (see
PropertyType
). A property contains one type.attribute -> (structure)
Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.
defaultValue -> (string)
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 AWS IoT SiteWise User Guide .
measurement -> (structure)
Specifies an asset measurement property. A measurement represents a device’s raw sensor data stream, such as timestamped temperature values or timestamped power values.
transform -> (structure)
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.
expression -> (string)
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 AWS IoT SiteWise User Guide .
variables -> (list)
The list of variables used in the expression.
(structure)
Contains expression variable information.
name -> (string)
The friendly name of the variable to be used in the expression.
value -> (structure)
The variable that identifies an asset property from which to use values.
propertyId -> (string)
The ID of the property to use as the variable. You can use the property
name
if it’s from the same asset model.hierarchyId -> (string)
The ID of the hierarchy to query for the property ID. You can use the hierarchy’s name instead of the hierarchy’s ID.
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 AWS IoT SiteWise User Guide .metric -> (structure)
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.
expression -> (string)
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 AWS IoT SiteWise User Guide .
variables -> (list)
The list of variables used in the expression.
(structure)
Contains expression variable information.
name -> (string)
The friendly name of the variable to be used in the expression.
value -> (structure)
The variable that identifies an asset property from which to use values.
propertyId -> (string)
The ID of the property to use as the variable. You can use the property
name
if it’s from the same asset model.hierarchyId -> (string)
The ID of the hierarchy to query for the property ID. You can use the hierarchy’s name instead of the hierarchy’s ID.
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 AWS IoT SiteWise User Guide .window -> (structure)
The window (time interval) over which AWS IoT SiteWise computes the metric’s aggregation expression. AWS IoT SiteWise computes one data point per
window
.tumbling -> (structure)
The tumbling time interval window.
interval -> (string)
The time interval for the tumbling window. Note that
w
represents weeks,d
represents days,h
represents hours, andm
represents minutes. AWS IoT SiteWise computes the1w
interval the end of Sunday at midnight each week (UTC), the1d
interval at the end of each day at midnight (UTC), the1h
interval at the end of each hour, and so on.When AWS IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the end of each interval is inclusive. AWS IoT SiteWise places the computed data point at the end of the interval.