Struct aws_sdk_evidently::types::MetricDefinition
source · #[non_exhaustive]pub struct MetricDefinition {
pub name: Option<String>,
pub entity_id_key: Option<String>,
pub value_key: Option<String>,
pub event_pattern: Option<String>,
pub unit_label: Option<String>,
}Expand description
This structure defines a metric that is being used to evaluate the variations during a launch or experiment.
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: Option<String>The name of the metric.
entity_id_key: Option<String>The entity, such as a user or session, that does an action that causes a metric value to be recorded.
value_key: Option<String>The value that is tracked to produce the metric.
event_pattern: Option<String>The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
unit_label: Option<String>The label for the units that the metric is measuring.
Implementations§
source§impl MetricDefinition
impl MetricDefinition
sourcepub fn entity_id_key(&self) -> Option<&str>
pub fn entity_id_key(&self) -> Option<&str>
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
sourcepub fn event_pattern(&self) -> Option<&str>
pub fn event_pattern(&self) -> Option<&str>
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
sourcepub fn unit_label(&self) -> Option<&str>
pub fn unit_label(&self) -> Option<&str>
The label for the units that the metric is measuring.
source§impl MetricDefinition
impl MetricDefinition
sourcepub fn builder() -> MetricDefinitionBuilder
pub fn builder() -> MetricDefinitionBuilder
Creates a new builder-style object to manufacture MetricDefinition.
Trait Implementations§
source§impl Clone for MetricDefinition
impl Clone for MetricDefinition
source§fn clone(&self) -> MetricDefinition
fn clone(&self) -> MetricDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MetricDefinition
impl Debug for MetricDefinition
source§impl PartialEq for MetricDefinition
impl PartialEq for MetricDefinition
source§fn eq(&self, other: &MetricDefinition) -> bool
fn eq(&self, other: &MetricDefinition) -> bool
self and other values to be equal, and is used
by ==.