You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::IoTSiteWise::Types::AssetModelProperty

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing AssetModelProperty as input to an Aws::Client method, you can use a vanilla Hash:

{
  id: "ID",
  name: "Name", # required
  data_type: "STRING", # required, accepts STRING, INTEGER, DOUBLE, BOOLEAN
  unit: "PropertyUnit",
  type: { # required
    attribute: {
      default_value: "DefaultValue",
    },
    measurement: {
    },
    transform: {
      expression: "Expression", # required
      variables: [ # required
        {
          name: "VariableName", # required
          value: { # required
            property_id: "Macro", # required
            hierarchy_id: "Macro",
          },
        },
      ],
    },
    metric: {
      expression: "Expression", # required
      variables: [ # required
        {
          name: "VariableName", # required
          value: { # required
            property_id: "Macro", # required
            hierarchy_id: "Macro",
          },
        },
      ],
      window: { # required
        tumbling: {
          interval: "Interval", # required
        },
      },
    },
  },
}

Contains information about an asset model property.

Instance Attribute Summary collapse

Instance Attribute Details

#data_typeString

The data type of the asset model property.

Possible values:

  • STRING
  • INTEGER
  • DOUBLE
  • BOOLEAN

Returns:

  • (String)

    The data type of the asset model property.

#idString

The ID of the asset model property.

Returns:

  • (String)

    The ID of the asset model property.

#nameString

The name of the asset model property.

Returns:

  • (String)

    The name of the asset model property.

#typeTypes::PropertyType

The property type (see PropertyType).

Returns:

#unitString

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

Returns:

  • (String)

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