Struct aws_sdk_evidently::types::MetricDefinitionConfig
source · #[non_exhaustive]pub struct MetricDefinitionConfig {
pub name: String,
pub entity_id_key: String,
pub value_key: String,
pub event_pattern: Option<String>,
pub unit_label: Option<String>,
}
Expand description
This structure defines a metric that you want to use 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: String
A name for the metric.
entity_id_key: String
The entity, such as a user or session, that does an action that causes a metric value to be recorded. An example is userDetails.userID
.
value_key: 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>
A label for the units that the metric is measuring.
Implementations§
source§impl MetricDefinitionConfig
impl MetricDefinitionConfig
sourcepub fn entity_id_key(&self) -> &str
pub fn entity_id_key(&self) -> &str
The entity, such as a user or session, that does an action that causes a metric value to be recorded. An example is userDetails.userID
.
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>
A label for the units that the metric is measuring.
source§impl MetricDefinitionConfig
impl MetricDefinitionConfig
sourcepub fn builder() -> MetricDefinitionConfigBuilder
pub fn builder() -> MetricDefinitionConfigBuilder
Creates a new builder-style object to manufacture MetricDefinitionConfig
.
Trait Implementations§
source§impl Clone for MetricDefinitionConfig
impl Clone for MetricDefinitionConfig
source§fn clone(&self) -> MetricDefinitionConfig
fn clone(&self) -> MetricDefinitionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricDefinitionConfig
impl Debug for MetricDefinitionConfig
source§impl PartialEq for MetricDefinitionConfig
impl PartialEq for MetricDefinitionConfig
source§fn eq(&self, other: &MetricDefinitionConfig) -> bool
fn eq(&self, other: &MetricDefinitionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricDefinitionConfig
Auto Trait Implementations§
impl Freeze for MetricDefinitionConfig
impl RefUnwindSafe for MetricDefinitionConfig
impl Send for MetricDefinitionConfig
impl Sync for MetricDefinitionConfig
impl Unpin for MetricDefinitionConfig
impl UnwindSafe for MetricDefinitionConfig
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