Class: Aws::IoTEvents::Types::AssetPropertyValue

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

Overview

Note:

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

{
  value: { # required
    string_value: "AssetPropertyStringValue",
    integer_value: "AssetPropertyIntegerValue",
    double_value: "AssetPropertyDoubleValue",
    boolean_value: "AssetPropertyBooleanValue",
  },
  timestamp: {
    time_in_seconds: "AssetPropertyTimeInSeconds", # required
    offset_in_nanos: "AssetPropertyOffsetInNanos",
  },
  quality: "AssetPropertyQuality",
}

A structure that contains value information. For more information, see AssetPropertyValue in the AWS IoT SiteWise API Reference.

For parameters that are string data type, you can specify the following options:

  • Use a string. For example, the quality value can be 'GOOD'.

  • Use an expression. For example, the quality value can be $input.TemperatureInput.sensorData.quality .

    For more information, see Expressions in the AWS IoT Events Developer Guide.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#qualityString

The quality of the asset property value. The value must be GOOD, BAD, or UNCERTAIN. You can also specify an expression.

Returns:

  • (String)


315
316
317
318
319
320
321
# File 'gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/types.rb', line 315

class AssetPropertyValue < Struct.new(
  :value,
  :timestamp,
  :quality)
  SENSITIVE = []
  include Aws::Structure
end

#timestampTypes::AssetPropertyTimestamp

The timestamp associated with the asset property value. The default is the current event time.



315
316
317
318
319
320
321
# File 'gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/types.rb', line 315

class AssetPropertyValue < Struct.new(
  :value,
  :timestamp,
  :quality)
  SENSITIVE = []
  include Aws::Structure
end

#valueTypes::AssetPropertyVariant

The value to send to an asset property.



315
316
317
318
319
320
321
# File 'gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/types.rb', line 315

class AssetPropertyValue < Struct.new(
  :value,
  :timestamp,
  :quality)
  SENSITIVE = []
  include Aws::Structure
end