AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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

Class: Aws::TimestreamWrite::Types::Record

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

Overview

Note:

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

{
  dimensions: [
    {
      name: "StringValue256", # required
      value: "StringValue2048", # required
      dimension_value_type: "VARCHAR", # accepts VARCHAR
    },
  ],
  measure_name: "StringValue256",
  measure_value: "StringValue2048",
  measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN
  time: "StringValue256",
  time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
}

Record represents a time series data point being written into Timestream. Each record contains an array of dimensions. Dimensions represent the meta data attributes of a time series data point such as the instance name or availability zone of an EC2 instance. A record also contains the measure name which is the name of the measure being collected for example the CPU utilization of an EC2 instance. A record also contains the measure value and the value type which is the data type of the measure value. In addition, the record contains the timestamp when the measure was collected that the timestamp unit which represents the granularity of the timestamp.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#dimensionsArray<Types::Dimension>

Contains the list of dimensions for time series data points.

Returns:

  • (Array<Types::Dimension>)

    Contains the list of dimensions for time series data points.

#measure_nameString

Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.

Returns:

  • (String)

    Measure represents the data attribute of the time series.

#measure_valueString

Contains the measure value for the time series data point.

Returns:

  • (String)

    Contains the measure value for the time series data point.

#measure_value_typeString

Contains the data type of the measure value for the time series data point.

Possible values:

  • DOUBLE
  • BIGINT
  • VARCHAR
  • BOOLEAN

Returns:

  • (String)

    Contains the data type of the measure value for the time series data point.

#timeString

Contains the time at which the measure value for the data point was collected.

Returns:

  • (String)

    Contains the time at which the measure value for the data point was collected.

#time_unitString

The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds or other supported values.

Possible values:

  • MILLISECONDS
  • SECONDS
  • MICROSECONDS
  • NANOSECONDS

Returns:

  • (String)

    The granularity of the timestamp unit.