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: String
The metric's event type.
metric_name: String
The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
expression: String
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).
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 ==
.