Struct aws_sdk_evidently::types::builders::MetricDefinitionBuilder
source · #[non_exhaustive]pub struct MetricDefinitionBuilder { /* private fields */ }Expand description
A builder for MetricDefinition.
Implementations§
source§impl MetricDefinitionBuilder
impl MetricDefinitionBuilder
sourcepub fn entity_id_key(self, input: impl Into<String>) -> Self
pub fn entity_id_key(self, input: impl Into<String>) -> Self
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
sourcepub fn set_entity_id_key(self, input: Option<String>) -> Self
pub fn set_entity_id_key(self, input: Option<String>) -> Self
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
sourcepub fn value_key(self, input: impl Into<String>) -> Self
pub fn value_key(self, input: impl Into<String>) -> Self
The value that is tracked to produce the metric.
sourcepub fn set_value_key(self, input: Option<String>) -> Self
pub fn set_value_key(self, input: Option<String>) -> Self
The value that is tracked to produce the metric.
sourcepub fn event_pattern(self, input: impl Into<String>) -> Self
pub fn event_pattern(self, input: impl Into<String>) -> Self
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 set_event_pattern(self, input: Option<String>) -> Self
pub fn set_event_pattern(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn unit_label(self, input: impl Into<String>) -> Self
The label for the units that the metric is measuring.
sourcepub fn set_unit_label(self, input: Option<String>) -> Self
pub fn set_unit_label(self, input: Option<String>) -> Self
The label for the units that the metric is measuring.
sourcepub fn build(self) -> MetricDefinition
pub fn build(self) -> MetricDefinition
Consumes the builder and constructs a MetricDefinition.
Trait Implementations§
source§impl Clone for MetricDefinitionBuilder
impl Clone for MetricDefinitionBuilder
source§fn clone(&self) -> MetricDefinitionBuilder
fn clone(&self) -> MetricDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MetricDefinitionBuilder
impl Debug for MetricDefinitionBuilder
source§impl Default for MetricDefinitionBuilder
impl Default for MetricDefinitionBuilder
source§fn default() -> MetricDefinitionBuilder
fn default() -> MetricDefinitionBuilder
source§impl PartialEq<MetricDefinitionBuilder> for MetricDefinitionBuilder
impl PartialEq<MetricDefinitionBuilder> for MetricDefinitionBuilder
source§fn eq(&self, other: &MetricDefinitionBuilder) -> bool
fn eq(&self, other: &MetricDefinitionBuilder) -> bool
self and other values to be equal, and is used
by ==.