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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-timestreamwrite/types.rb

Overview

Note:

When making an API call, you may pass WriteRecordsRequest data as a 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
    version: 1,
  },
  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
      version: 1,
    },
  ],
}

Constant Summary collapse

SENSITIVE =
[]

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:



1115
1116
1117
1118
1119
1120
1121
1122
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1115

class WriteRecordsRequest < Struct.new(
  :database_name,
  :table_name,
  :common_attributes,
  :records)
  SENSITIVE = []
  include Aws::Structure
end

#database_nameString

The name of the Timestream database.

Returns:

  • (String)


1115
1116
1117
1118
1119
1120
1121
1122
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1115

class WriteRecordsRequest < Struct.new(
  :database_name,
  :table_name,
  :common_attributes,
  :records)
  SENSITIVE = []
  include Aws::Structure
end

#recordsArray<Types::Record>

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

Returns:



1115
1116
1117
1118
1119
1120
1121
1122
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1115

class WriteRecordsRequest < Struct.new(
  :database_name,
  :table_name,
  :common_attributes,
  :records)
  SENSITIVE = []
  include Aws::Structure
end

#table_nameString

The name of the Timesream table.

Returns:

  • (String)


1115
1116
1117
1118
1119
1120
1121
1122
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1115

class WriteRecordsRequest < Struct.new(
  :database_name,
  :table_name,
  :common_attributes,
  :records)
  SENSITIVE = []
  include Aws::Structure
end