Struct aws_sdk_cloudwatchlogs::types::builders::MetricFilterBuilder
source · #[non_exhaustive]pub struct MetricFilterBuilder { /* private fields */ }
Expand description
A builder for MetricFilter
.
Implementations§
source§impl MetricFilterBuilder
impl MetricFilterBuilder
sourcepub fn filter_name(self, input: impl Into<String>) -> Self
pub fn filter_name(self, input: impl Into<String>) -> Self
The name of the metric filter.
sourcepub fn set_filter_name(self, input: Option<String>) -> Self
pub fn set_filter_name(self, input: Option<String>) -> Self
The name of the metric filter.
sourcepub fn get_filter_name(&self) -> &Option<String>
pub fn get_filter_name(&self) -> &Option<String>
The name of the metric filter.
sourcepub fn filter_pattern(self, input: impl Into<String>) -> Self
pub fn filter_pattern(self, input: impl Into<String>) -> Self
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
sourcepub fn set_filter_pattern(self, input: Option<String>) -> Self
pub fn set_filter_pattern(self, input: Option<String>) -> Self
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
sourcepub fn get_filter_pattern(&self) -> &Option<String>
pub fn get_filter_pattern(&self) -> &Option<String>
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
sourcepub fn metric_transformations(self, input: MetricTransformation) -> Self
pub fn metric_transformations(self, input: MetricTransformation) -> Self
Appends an item to metric_transformations
.
To override the contents of this collection use set_metric_transformations
.
The metric transformations.
sourcepub fn set_metric_transformations(
self,
input: Option<Vec<MetricTransformation>>,
) -> Self
pub fn set_metric_transformations( self, input: Option<Vec<MetricTransformation>>, ) -> Self
The metric transformations.
sourcepub fn get_metric_transformations(&self) -> &Option<Vec<MetricTransformation>>
pub fn get_metric_transformations(&self) -> &Option<Vec<MetricTransformation>>
The metric transformations.
sourcepub fn creation_time(self, input: i64) -> Self
pub fn creation_time(self, input: i64) -> Self
The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn set_creation_time(self, input: Option<i64>) -> Self
pub fn set_creation_time(self, input: Option<i64>) -> Self
The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn get_creation_time(&self) -> &Option<i64>
pub fn get_creation_time(&self) -> &Option<i64>
The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn log_group_name(self, input: impl Into<String>) -> Self
pub fn log_group_name(self, input: impl Into<String>) -> Self
The name of the log group.
sourcepub fn set_log_group_name(self, input: Option<String>) -> Self
pub fn set_log_group_name(self, input: Option<String>) -> Self
The name of the log group.
sourcepub fn get_log_group_name(&self) -> &Option<String>
pub fn get_log_group_name(&self) -> &Option<String>
The name of the log group.
sourcepub fn build(self) -> MetricFilter
pub fn build(self) -> MetricFilter
Consumes the builder and constructs a MetricFilter
.
Trait Implementations§
source§impl Clone for MetricFilterBuilder
impl Clone for MetricFilterBuilder
source§fn clone(&self) -> MetricFilterBuilder
fn clone(&self) -> MetricFilterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricFilterBuilder
impl Debug for MetricFilterBuilder
source§impl Default for MetricFilterBuilder
impl Default for MetricFilterBuilder
source§fn default() -> MetricFilterBuilder
fn default() -> MetricFilterBuilder
source§impl PartialEq for MetricFilterBuilder
impl PartialEq for MetricFilterBuilder
source§fn eq(&self, other: &MetricFilterBuilder) -> bool
fn eq(&self, other: &MetricFilterBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricFilterBuilder
Auto Trait Implementations§
impl Freeze for MetricFilterBuilder
impl RefUnwindSafe for MetricFilterBuilder
impl Send for MetricFilterBuilder
impl Sync for MetricFilterBuilder
impl Unpin for MetricFilterBuilder
impl UnwindSafe for MetricFilterBuilder
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