/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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. See Also:
AWS
* API Reference
Contains the list of dimensions for time-series data points.
*/ inline const Aws::VectorContains the list of dimensions for time-series data points.
*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *Contains the list of dimensions for time-series data points.
*/ inline void SetDimensions(const Aws::VectorContains the list of dimensions for time-series data points.
*/ inline void SetDimensions(Aws::VectorContains the list of dimensions for time-series data points.
*/ inline Record& WithDimensions(const Aws::VectorContains the list of dimensions for time-series data points.
*/ inline Record& WithDimensions(Aws::VectorContains the list of dimensions for time-series data points.
*/ inline Record& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *Contains the list of dimensions for time-series data points.
*/ inline Record& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } /** *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. *
*/ inline const Aws::String& GetMeasureName() const{ return m_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. *
*/ inline bool MeasureNameHasBeenSet() const { return m_measureNameHasBeenSet; } /** *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. *
*/ inline void SetMeasureName(const Aws::String& value) { m_measureNameHasBeenSet = true; m_measureName = value; } /** *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. *
*/ inline void SetMeasureName(Aws::String&& value) { m_measureNameHasBeenSet = true; m_measureName = std::move(value); } /** *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. *
*/ inline void SetMeasureName(const char* value) { m_measureNameHasBeenSet = true; m_measureName.assign(value); } /** *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. *
*/ inline Record& WithMeasureName(const Aws::String& value) { SetMeasureName(value); return *this;} /** *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. *
*/ inline Record& WithMeasureName(Aws::String&& value) { SetMeasureName(std::move(value)); return *this;} /** *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. *
*/ inline Record& WithMeasureName(const char* value) { SetMeasureName(value); return *this;} /** *Contains the measure value for the time-series data point.
*/ inline const Aws::String& GetMeasureValue() const{ return m_measureValue; } /** *Contains the measure value for the time-series data point.
*/ inline bool MeasureValueHasBeenSet() const { return m_measureValueHasBeenSet; } /** *Contains the measure value for the time-series data point.
*/ inline void SetMeasureValue(const Aws::String& value) { m_measureValueHasBeenSet = true; m_measureValue = value; } /** *Contains the measure value for the time-series data point.
*/ inline void SetMeasureValue(Aws::String&& value) { m_measureValueHasBeenSet = true; m_measureValue = std::move(value); } /** *Contains the measure value for the time-series data point.
*/ inline void SetMeasureValue(const char* value) { m_measureValueHasBeenSet = true; m_measureValue.assign(value); } /** *Contains the measure value for the time-series data point.
*/ inline Record& WithMeasureValue(const Aws::String& value) { SetMeasureValue(value); return *this;} /** *Contains the measure value for the time-series data point.
*/ inline Record& WithMeasureValue(Aws::String&& value) { SetMeasureValue(std::move(value)); return *this;} /** *Contains the measure value for the time-series data point.
*/ inline Record& WithMeasureValue(const char* value) { SetMeasureValue(value); return *this;} /** * Contains the data type of the measure value for the time-series data point.
* Default type is DOUBLE
. For more information, see Data
* types.
Contains the data type of the measure value for the time-series data point.
* Default type is DOUBLE
. For more information, see Data
* types.
Contains the data type of the measure value for the time-series data point.
* Default type is DOUBLE
. For more information, see Data
* types.
Contains the data type of the measure value for the time-series data point.
* Default type is DOUBLE
. For more information, see Data
* types.
Contains the data type of the measure value for the time-series data point.
* Default type is DOUBLE
. For more information, see Data
* types.
Contains the data type of the measure value for the time-series data point.
* Default type is DOUBLE
. For more information, see Data
* types.
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.
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.
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.
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.
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.
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.
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.
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.
The granularity of the timestamp unit. It indicates if the time value is in
* seconds, milliseconds, nanoseconds, or other supported values. Default is
* MILLISECONDS
.
The granularity of the timestamp unit. It indicates if the time value is in
* seconds, milliseconds, nanoseconds, or other supported values. Default is
* MILLISECONDS
.
The granularity of the timestamp unit. It indicates if the time value is in
* seconds, milliseconds, nanoseconds, or other supported values. Default is
* MILLISECONDS
.
The granularity of the timestamp unit. It indicates if the time value is in
* seconds, milliseconds, nanoseconds, or other supported values. Default is
* MILLISECONDS
.
The granularity of the timestamp unit. It indicates if the time value is in
* seconds, milliseconds, nanoseconds, or other supported values. Default is
* MILLISECONDS
.
The granularity of the timestamp unit. It indicates if the time value is in
* seconds, milliseconds, nanoseconds, or other supported values. Default is
* MILLISECONDS
.
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
.
Version
* must be 1
or greater, or you will receive a
* ValidationException
error.
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
.
Version
* must be 1
or greater, or you will receive a
* ValidationException
error.
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
.
Version
* must be 1
or greater, or you will receive a
* ValidationException
error.
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
.
Version
* must be 1
or greater, or you will receive a
* ValidationException
error.
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.
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.
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.
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.
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.
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.
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.
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.