Class: Aws::IoTSiteWise::Types::AssetModelCompositeModelDefinition

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/types.rb

Overview

Note:

When making an API call, you may pass AssetModelCompositeModelDefinition data as a hash:

{
  name: "Name", # required
  description: "Description",
  type: "Name", # required
  properties: [
    {
      name: "Name", # required
      data_type: "STRING", # required, accepts STRING, INTEGER, DOUBLE, BOOLEAN, STRUCT
      data_type_spec: "Name",
      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 a composite model definition in an asset model. This composite model definition is applied to all assets created from the asset model.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

The description of the composite model.

Returns:

  • (String)


367
368
369
370
371
372
373
374
# File 'gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/types.rb', line 367

class AssetModelCompositeModelDefinition < Struct.new(
  :name,
  :description,
  :type,
  :properties)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The name of the composite model.

Returns:

  • (String)


367
368
369
370
371
372
373
374
# File 'gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/types.rb', line 367

class AssetModelCompositeModelDefinition < Struct.new(
  :name,
  :description,
  :type,
  :properties)
  SENSITIVE = []
  include Aws::Structure
end

#propertiesArray<Types::AssetModelPropertyDefinition>

The asset property definitions for this composite model.



367
368
369
370
371
372
373
374
# File 'gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/types.rb', line 367

class AssetModelCompositeModelDefinition < Struct.new(
  :name,
  :description,
  :type,
  :properties)
  SENSITIVE = []
  include Aws::Structure
end

#typeString

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

Returns:

  • (String)


367
368
369
370
371
372
373
374
# File 'gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/types.rb', line 367

class AssetModelCompositeModelDefinition < Struct.new(
  :name,
  :description,
  :type,
  :properties)
  SENSITIVE = []
  include Aws::Structure
end