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

Class: Aws::TimestreamWrite::Types::WriteRecordsRequest

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

Overview

Note:

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

{
  database_name: "ResourceName", # required
  table_name: "ResourceName", # required
  common_attributes: {
    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
  },
  records: [ # required
    {
      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
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#common_attributesTypes::Record

A record containing the common measure and dimension attributes shared across all the records in the request. The measure and dimension attributes specified in here will be merged with the measure and dimension attributes in the records object when the data is written into Timestream.

Returns:

  • (Types::Record)

    A record containing the common measure and dimension attributes shared across all the records in the request.

#database_nameString

The name of the Timestream database.

Returns:

  • (String)

    The name of the Timestream database.

#recordsArray<Types::Record>

An array of records containing the unique dimension and measure attributes for each time series data point.

Returns:

  • (Array<Types::Record>)

    An array of records containing the unique dimension and measure attributes for each time series data point.

#table_nameString

The name of the Timesream table.

Returns:

  • (String)

    The name of the Timesream table.