Struct aws_sdk_timestreamwrite::types::MeasureValue
source · #[non_exhaustive]pub struct MeasureValue {
pub name: String,
pub value: String,
pub type: MeasureValueType,
}Expand description
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. MeasureValue has both name and value.
MeasureValue is only allowed for type MULTI. Using MULTI type, you can pass multiple data attributes associated with the same time series in a single record
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.name: StringThe name of the MeasureValue.
For constraints on MeasureValue names, see Naming Constraints in the Amazon Timestream Developer Guide.
value: StringThe value for the MeasureValue. For information, see Data types.
type: MeasureValueTypeContains the data type of the MeasureValue for the time-series data point.
Implementations§
source§impl MeasureValue
impl MeasureValue
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the MeasureValue.
For constraints on MeasureValue names, see Naming Constraints in the Amazon Timestream Developer Guide.
sourcepub fn value(&self) -> &str
pub fn value(&self) -> &str
The value for the MeasureValue. For information, see Data types.
sourcepub fn type(&self) -> &MeasureValueType
pub fn type(&self) -> &MeasureValueType
Contains the data type of the MeasureValue for the time-series data point.
source§impl MeasureValue
impl MeasureValue
sourcepub fn builder() -> MeasureValueBuilder
pub fn builder() -> MeasureValueBuilder
Creates a new builder-style object to manufacture MeasureValue.
Trait Implementations§
source§impl Clone for MeasureValue
impl Clone for MeasureValue
source§fn clone(&self) -> MeasureValue
fn clone(&self) -> MeasureValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MeasureValue
impl Debug for MeasureValue
source§impl PartialEq for MeasureValue
impl PartialEq for MeasureValue
source§fn eq(&self, other: &MeasureValue) -> bool
fn eq(&self, other: &MeasureValue) -> bool
self and other values to be equal, and is used
by ==.