@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Record extends Object implements Serializable, Cloneable, StructuredPojo
Record represents a time series data point being written into Timestream. Each record contains an array of dimensions. Dimensions represent the meta data 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. A record also contains the measure value and the value type which is the data type of the measure value. In addition, the record contains the timestamp when the measure was collected that the timestamp unit which represents the granularity of the timestamp.
Constructor and Description |
---|
Record() |
Modifier and Type | Method and Description |
---|---|
Record |
clone() |
boolean |
equals(Object obj) |
List<Dimension> |
getDimensions()
Contains the list of dimensions for time series data points.
|
String |
getMeasureName()
Measure represents the data attribute of the time series.
|
String |
getMeasureValue()
Contains the measure value for the time series data point.
|
String |
getMeasureValueType()
Contains the data type of the measure value for the time series data point.
|
String |
getTime()
Contains the time at which the measure value for the data point was collected.
|
String |
getTimeUnit()
The granularity of the timestamp unit.
|
Long |
getVersion()
64-bit attribute used for record updates.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDimensions(Collection<Dimension> dimensions)
Contains the list of dimensions for time series data points.
|
void |
setMeasureName(String measureName)
Measure represents the data attribute of the time series.
|
void |
setMeasureValue(String measureValue)
Contains the measure value for the time series data point.
|
void |
setMeasureValueType(String measureValueType)
Contains the data type of the measure value for the time series data point.
|
void |
setTime(String time)
Contains the time at which the measure value for the data point was collected.
|
void |
setTimeUnit(String timeUnit)
The granularity of the timestamp unit.
|
void |
setVersion(Long version)
64-bit attribute used for record updates.
|
String |
toString()
Returns a string representation of this object.
|
Record |
withDimensions(Collection<Dimension> dimensions)
Contains the list of dimensions for time series data points.
|
Record |
withDimensions(Dimension... dimensions)
Contains the list of dimensions for time series data points.
|
Record |
withMeasureName(String measureName)
Measure represents the data attribute of the time series.
|
Record |
withMeasureValue(String measureValue)
Contains the measure value for the time series data point.
|
Record |
withMeasureValueType(MeasureValueType measureValueType)
Contains the data type of the measure value for the time series data point.
|
Record |
withMeasureValueType(String measureValueType)
Contains the data type of the measure value for the time series data point.
|
Record |
withTime(String time)
Contains the time at which the measure value for the data point was collected.
|
Record |
withTimeUnit(String timeUnit)
The granularity of the timestamp unit.
|
Record |
withTimeUnit(TimeUnit timeUnit)
The granularity of the timestamp unit.
|
Record |
withVersion(Long version)
64-bit attribute used for record updates.
|
public List<Dimension> getDimensions()
Contains the list of dimensions for time series data points.
public void setDimensions(Collection<Dimension> dimensions)
Contains the list of dimensions for time series data points.
dimensions
- Contains the list of dimensions for time series data points.public Record withDimensions(Dimension... dimensions)
Contains the list of dimensions for time series data points.
NOTE: This method appends the values to the existing list (if any). Use
setDimensions(java.util.Collection)
or withDimensions(java.util.Collection)
if you want to
override the existing values.
dimensions
- Contains the list of dimensions for time series data points.public Record withDimensions(Collection<Dimension> dimensions)
Contains the list of dimensions for time series data points.
dimensions
- Contains the list of dimensions for time series data points.public void setMeasureName(String measureName)
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.
measureName
- 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.public String getMeasureName()
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.
public Record withMeasureName(String measureName)
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.
measureName
- 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.public void setMeasureValue(String measureValue)
Contains the measure value for the time series data point.
measureValue
- Contains the measure value for the time series data point.public String getMeasureValue()
Contains the measure value for the time series data point.
public Record withMeasureValue(String measureValue)
Contains the measure value for the time series data point.
measureValue
- Contains the measure value for the time series data point.public void setMeasureValueType(String measureValueType)
Contains the data type of the measure value for the time series data point.
measureValueType
- Contains the data type of the measure value for the time series data point.MeasureValueType
public String getMeasureValueType()
Contains the data type of the measure value for the time series data point.
MeasureValueType
public Record withMeasureValueType(String measureValueType)
Contains the data type of the measure value for the time series data point.
measureValueType
- Contains the data type of the measure value for the time series data point.MeasureValueType
public Record withMeasureValueType(MeasureValueType measureValueType)
Contains the data type of the measure value for the time series data point.
measureValueType
- Contains the data type of the measure value for the time series data point.MeasureValueType
public void setTime(String time)
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.
time
- 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.public String getTime()
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.
12345
and
the unit is ms
, then 12345 ms
have elapsed since the epoch.public Record withTime(String time)
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.
time
- 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.public void setTimeUnit(String timeUnit)
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds or other supported values.
timeUnit
- The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds,
nanoseconds or other supported values.TimeUnit
public String getTimeUnit()
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds or other supported values.
TimeUnit
public Record withTimeUnit(String timeUnit)
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds or other supported values.
timeUnit
- The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds,
nanoseconds or other supported values.TimeUnit
public Record withTimeUnit(TimeUnit timeUnit)
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds or other supported values.
timeUnit
- The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds,
nanoseconds or other supported values.TimeUnit
public void setVersion(Long version)
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 to 1.
version
- 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 to 1.public Long getVersion()
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 to 1.
Version
will still be updated . Default value is to 1.public Record withVersion(Long version)
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 to 1.
version
- 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 to 1.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.