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
- Struct
- Aws::TimestreamWrite::Types::WriteRecordsRequest
- Defined in:
- (unknown)
Overview
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
-
#common_attributes ⇒ Types::Record
A record containing the common measure and dimension attributes shared across all the records in the request.
-
#database_name ⇒ String
The name of the Timestream database.
-
#records ⇒ Array<Types::Record>
An array of records containing the unique dimension and measure attributes for each time series data point.
-
#table_name ⇒ String
The name of the Timesream table.
Instance Attribute Details
#common_attributes ⇒ Types::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.
#database_name ⇒ String
The name of the Timestream database.
#records ⇒ Array<Types::Record>
An array of records containing the unique dimension and measure attributes for each time series data point.
#table_name ⇒ String
The name of the Timesream table.