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 ==
.impl StructuralPartialEq for MetricDefinition
Auto Trait Implementations§
impl Freeze for MetricDefinition
impl RefUnwindSafe for MetricDefinition
impl Send for MetricDefinition
impl Sync for MetricDefinition
impl Unpin for MetricDefinition
impl UnwindSafe for MetricDefinition
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