Struct aws_sdk_personalize::model::MetricAttribute
source · #[non_exhaustive]pub struct MetricAttribute { /* private fields */ }
Expand description
Contains information on a metric that a metric attribution reports on. For more information, see Measuring impact of recommendations.
Implementations§
source§impl MetricAttribute
impl MetricAttribute
sourcepub fn event_type(&self) -> Option<&str>
pub fn event_type(&self) -> Option<&str>
The metric's event type.
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
sourcepub fn expression(&self) -> Option<&str>
pub fn expression(&self) -> Option<&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() -> Builder
pub fn builder() -> Builder
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MetricAttribute
impl Debug for MetricAttribute
source§impl PartialEq<MetricAttribute> for MetricAttribute
impl PartialEq<MetricAttribute> for MetricAttribute
source§fn eq(&self, other: &MetricAttribute) -> bool
fn eq(&self, other: &MetricAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.