Struct aws_sdk_timestreamwrite::types::DataModel
source · #[non_exhaustive]pub struct DataModel {
pub time_column: Option<String>,
pub time_unit: Option<TimeUnit>,
pub dimension_mappings: Vec<DimensionMapping>,
pub multi_measure_mappings: Option<MultiMeasureMappings>,
pub mixed_measure_mappings: Option<Vec<MixedMeasureMapping>>,
pub measure_name_column: Option<String>,
}
Expand description
Data model for a batch load task.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.time_column: Option<String>
Source column to be mapped to time.
time_unit: Option<TimeUnit>
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS
.
dimension_mappings: Vec<DimensionMapping>
Source to target mappings for dimensions.
multi_measure_mappings: Option<MultiMeasureMappings>
Source to target mappings for multi-measure records.
mixed_measure_mappings: Option<Vec<MixedMeasureMapping>>
Source to target mappings for measures.
measure_name_column: Option<String>
Implementations§
source§impl DataModel
impl DataModel
sourcepub fn time_column(&self) -> Option<&str>
pub fn time_column(&self) -> Option<&str>
Source column to be mapped to time.
sourcepub fn time_unit(&self) -> Option<&TimeUnit>
pub fn time_unit(&self) -> Option<&TimeUnit>
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS
.
sourcepub fn dimension_mappings(&self) -> &[DimensionMapping]
pub fn dimension_mappings(&self) -> &[DimensionMapping]
Source to target mappings for dimensions.
sourcepub fn multi_measure_mappings(&self) -> Option<&MultiMeasureMappings>
pub fn multi_measure_mappings(&self) -> Option<&MultiMeasureMappings>
Source to target mappings for multi-measure records.
sourcepub fn mixed_measure_mappings(&self) -> &[MixedMeasureMapping]
pub fn mixed_measure_mappings(&self) -> &[MixedMeasureMapping]
Source to target mappings for measures.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .mixed_measure_mappings.is_none()
.