Class: Aws::TimestreamWrite::Types::Record
- Inherits:
-
Struct
- Object
- Struct
- Aws::TimestreamWrite::Types::Record
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-timestreamwrite/types.rb
Overview
Represents a time-series data point being written into Timestream. Each record contains an array of dimensions. Dimensions represent the metadata 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). Additionally, a record contains the measure value and the value type, which is the data type of the measure value. Also, the record contains the timestamp of when the measure was collected and the timestamp unit, which represents the granularity of the timestamp.
Records have a ‘Version` field, which is a 64-bit `long` that you can use for updating data points. Writes of a duplicate record with the same dimension, timestamp, and measure name but different measure value will only succeed if the `Version` attribute of the record in the write request is higher than that of the existing record. Timestream defaults to a `Version` of `1` for records without the `Version` field.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#dimensions ⇒ Array<Types::Dimension>
Contains the list of dimensions for time-series data points.
-
#measure_name ⇒ String
Measure represents the data attribute of the time series.
-
#measure_value ⇒ String
Contains the measure value for the time-series data point.
-
#measure_value_type ⇒ String
Contains the data type of the measure value for the time-series data point.
-
#measure_values ⇒ Array<Types::MeasureValue>
Contains the list of MeasureValue for time-series data points.
-
#time ⇒ String
Contains the time at which the measure value for the data point was collected.
-
#time_unit ⇒ String
The granularity of the timestamp unit.
-
#version ⇒ Integer
64-bit attribute used for record updates.
Instance Attribute Details
#dimensions ⇒ Array<Types::Dimension>
Contains the list of dimensions for time-series data points.
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1148 class Record < Struct.new( :dimensions, :measure_name, :measure_value, :measure_value_type, :time, :time_unit, :version, :measure_values) SENSITIVE = [] include Aws::Structure end |
#measure_name ⇒ String
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.
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1148 class Record < Struct.new( :dimensions, :measure_name, :measure_value, :measure_value_type, :time, :time_unit, :version, :measure_values) SENSITIVE = [] include Aws::Structure end |
#measure_value ⇒ String
Contains the measure value for the time-series data point.
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1148 class Record < Struct.new( :dimensions, :measure_name, :measure_value, :measure_value_type, :time, :time_unit, :version, :measure_values) SENSITIVE = [] include Aws::Structure end |
#measure_value_type ⇒ String
Contains the data type of the measure value for the time-series data point. Default type is ‘DOUBLE`. For more information, see [Data types].
[1]: docs.aws.amazon.com/timestream/latest/developerguide/writes.html#writes.data-types
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1148 class Record < Struct.new( :dimensions, :measure_name, :measure_value, :measure_value_type, :time, :time_unit, :version, :measure_values) SENSITIVE = [] include Aws::Structure end |
#measure_values ⇒ Array<Types::MeasureValue>
Contains the list of MeasureValue for time-series data points.
This is only allowed for type ‘MULTI`. For scalar values, use `MeasureValue` attribute of the record directly.
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1148 class Record < Struct.new( :dimensions, :measure_name, :measure_value, :measure_value_type, :time, :time_unit, :version, :measure_values) SENSITIVE = [] include Aws::Structure end |
#time ⇒ String
Contains the time at which the measure value for the data point was collected. The time value plus the unit provides the time elapsed since the epoch. For example, if the time value is ‘12345` and the unit is `ms`, then `12345 ms` have elapsed since the epoch.
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1148 class Record < Struct.new( :dimensions, :measure_name, :measure_value, :measure_value_type, :time, :time_unit, :version, :measure_values) SENSITIVE = [] include Aws::Structure end |
#time_unit ⇒ String
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is ‘MILLISECONDS`.
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1148 class Record < Struct.new( :dimensions, :measure_name, :measure_value, :measure_value_type, :time, :time_unit, :version, :measure_values) SENSITIVE = [] include Aws::Structure end |
#version ⇒ Integer
64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, ‘Version` will still be updated. Default value is `1`.
<note markdown=“1”> ‘Version` must be `1` or greater, or you will receive a `ValidationException` error.
</note>
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/aws-sdk-timestreamwrite/types.rb', line 1148 class Record < Struct.new( :dimensions, :measure_name, :measure_value, :measure_value_type, :time, :time_unit, :version, :measure_values) SENSITIVE = [] include Aws::Structure end |