Class: Aws::TimestreamWrite::Types::WriteRecordsRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::TimestreamWrite::Types::WriteRecordsRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-timestreamwrite/types.rb
Overview
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
-
#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.
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_name ⇒ String
The name of the Timestream database.
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 |
#records ⇒ Array<Types::Record>
An array of records containing the unique dimension and measure attributes for each time series data point.
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_name ⇒ String
The name of the Timesream table.
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 |