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: String
The name of the MeasureValue.
For constraints on MeasureValue names, see Naming Constraints in the Amazon Timestream Developer Guide.
value: String
The value for the MeasureValue. For information, see Data types.
type: MeasureValueType
Contains 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
impl StructuralPartialEq for MeasureValue
Auto Trait Implementations§
impl Freeze for MeasureValue
impl RefUnwindSafe for MeasureValue
impl Send for MeasureValue
impl Sync for MeasureValue
impl Unpin for MeasureValue
impl UnwindSafe for MeasureValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more