View Source ExAws.Timestream.Write.Record (ExAws.Timestream v0.5.1)

Record represents a time series data point being written into Timestream. https://docs.aws.amazon.com/timestream/latest/developerguide/API_Record.html

Link to this section Summary

Functions

Add a dimension to a record struct

Create a new Record struct

Link to this section Types

@type dimension() :: %ExAws.Timestream.Write.Dimension{
  dimension_value_type: term(),
  name: term(),
  value: term()
}
@type measure_value() :: %ExAws.Timestream.Write.MeasureValue{
  name: term(),
  type: term(),
  value: term()
}
@type new_opts() :: %{
  dimensions: [dimension()],
  measure_name: binary(),
  measure_value: binary(),
  measure_values: [measure_value()],
  measure_value_type: binary(),
  time: binary(),
  time_unit: binary()
}
@type record() :: %ExAws.Timestream.Write.Record{
  dimensions: term(),
  measure_name: term(),
  measure_value: term(),
  measure_value_type: term(),
  measure_values: term(),
  time: term(),
  time_unit: term(),
  version: term()
}

Link to this section Functions

Link to this function

add_dimension(record, dimension)

View Source
@spec add_dimension(record :: record(), dimension :: dimension()) :: record()

Add a dimension to a record struct

@spec new(new_opts :: new_opts()) :: record()

Create a new Record struct