Struct aws_sdk_personalize::types::MetricAttribute
source · #[non_exhaustive]pub struct MetricAttribute {
pub event_type: String,
pub metric_name: String,
pub expression: String,
}Expand description
Contains information on a metric that a metric attribution reports on. For more information, see Measuring impact of recommendations.
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.event_type: StringThe metric's event type.
metric_name: StringThe metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
expression: StringThe attribute's expression. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).
Implementations§
source§impl MetricAttribute
impl MetricAttribute
sourcepub fn event_type(&self) -> &str
pub fn event_type(&self) -> &str
The metric's event type.
sourcepub fn metric_name(&self) -> &str
pub fn metric_name(&self) -> &str
The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
sourcepub fn expression(&self) -> &str
pub fn expression(&self) -> &str
The attribute's expression. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).
source§impl MetricAttribute
impl MetricAttribute
sourcepub fn builder() -> MetricAttributeBuilder
pub fn builder() -> MetricAttributeBuilder
Creates a new builder-style object to manufacture MetricAttribute.
Trait Implementations§
source§impl Clone for MetricAttribute
impl Clone for MetricAttribute
source§fn clone(&self) -> MetricAttribute
fn clone(&self) -> MetricAttribute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MetricAttribute
impl Debug for MetricAttribute
source§impl PartialEq for MetricAttribute
impl PartialEq for MetricAttribute
source§fn eq(&self, other: &MetricAttribute) -> bool
fn eq(&self, other: &MetricAttribute) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MetricAttribute
Auto Trait Implementations§
impl Freeze for MetricAttribute
impl RefUnwindSafe for MetricAttribute
impl Send for MetricAttribute
impl Sync for MetricAttribute
impl Unpin for MetricAttribute
impl UnwindSafe for MetricAttribute
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> 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