Struct aws_sdk_cloudwatchlogs::types::MetricFilter
source · #[non_exhaustive]pub struct MetricFilter {
pub filter_name: Option<String>,
pub filter_pattern: Option<String>,
pub metric_transformations: Option<Vec<MetricTransformation>>,
pub creation_time: Option<i64>,
pub log_group_name: Option<String>,
}
Expand description
Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric.
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.filter_name: Option<String>
The name of the metric filter.
filter_pattern: 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.
metric_transformations: Option<Vec<MetricTransformation>>
The metric transformations.
creation_time: Option<i64>
The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
log_group_name: Option<String>
The name of the log group.
Implementations§
source§impl MetricFilter
impl MetricFilter
sourcepub fn filter_name(&self) -> Option<&str>
pub fn filter_name(&self) -> Option<&str>
The name of the metric filter.
sourcepub fn filter_pattern(&self) -> Option<&str>
pub fn filter_pattern(&self) -> Option<&str>
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) -> &[MetricTransformation]
pub fn metric_transformations(&self) -> &[MetricTransformation]
The metric transformations.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .metric_transformations.is_none()
.
sourcepub fn creation_time(&self) -> Option<i64>
pub fn 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) -> Option<&str>
pub fn log_group_name(&self) -> Option<&str>
The name of the log group.
source§impl MetricFilter
impl MetricFilter
sourcepub fn builder() -> MetricFilterBuilder
pub fn builder() -> MetricFilterBuilder
Creates a new builder-style object to manufacture MetricFilter
.
Trait Implementations§
source§impl Clone for MetricFilter
impl Clone for MetricFilter
source§fn clone(&self) -> MetricFilter
fn clone(&self) -> MetricFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricFilter
impl Debug for MetricFilter
source§impl PartialEq for MetricFilter
impl PartialEq for MetricFilter
source§fn eq(&self, other: &MetricFilter) -> bool
fn eq(&self, other: &MetricFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricFilter
Auto Trait Implementations§
impl Freeze for MetricFilter
impl RefUnwindSafe for MetricFilter
impl Send for MetricFilter
impl Sync for MetricFilter
impl Unpin for MetricFilter
impl UnwindSafe for MetricFilter
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