#[non_exhaustive]pub struct NotificationFilterConfig {
pub severities: Option<Vec<InsightSeverity>>,
pub message_types: Option<Vec<NotificationMessageType>>,
}
Expand description
The filter configurations for the Amazon SNS notification topic you use with DevOps Guru. You can choose to specify which events or message types to receive notifications for. You can also choose to specify which severity levels to receive notifications for.
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.severities: Option<Vec<InsightSeverity>>
The severity levels that you want to receive notifications for. For example, you can choose to receive notifications only for insights with HIGH
and MEDIUM
severity levels. For more information, see Understanding insight severities.
message_types: Option<Vec<NotificationMessageType>>
The events that you want to receive notifications for. For example, you can choose to receive notifications only when the severity level is upgraded or a new insight is created.
Implementations§
source§impl NotificationFilterConfig
impl NotificationFilterConfig
sourcepub fn severities(&self) -> &[InsightSeverity]
pub fn severities(&self) -> &[InsightSeverity]
The severity levels that you want to receive notifications for. For example, you can choose to receive notifications only for insights with HIGH
and MEDIUM
severity levels. For more information, see Understanding insight severities.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .severities.is_none()
.
sourcepub fn message_types(&self) -> &[NotificationMessageType]
pub fn message_types(&self) -> &[NotificationMessageType]
The events that you want to receive notifications for. For example, you can choose to receive notifications only when the severity level is upgraded or a new insight is created.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .message_types.is_none()
.
source§impl NotificationFilterConfig
impl NotificationFilterConfig
sourcepub fn builder() -> NotificationFilterConfigBuilder
pub fn builder() -> NotificationFilterConfigBuilder
Creates a new builder-style object to manufacture NotificationFilterConfig
.
Trait Implementations§
source§impl Clone for NotificationFilterConfig
impl Clone for NotificationFilterConfig
source§fn clone(&self) -> NotificationFilterConfig
fn clone(&self) -> NotificationFilterConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NotificationFilterConfig
impl Debug for NotificationFilterConfig
source§impl PartialEq for NotificationFilterConfig
impl PartialEq for NotificationFilterConfig
source§fn eq(&self, other: &NotificationFilterConfig) -> bool
fn eq(&self, other: &NotificationFilterConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NotificationFilterConfig
Auto Trait Implementations§
impl Freeze for NotificationFilterConfig
impl RefUnwindSafe for NotificationFilterConfig
impl Send for NotificationFilterConfig
impl Sync for NotificationFilterConfig
impl Unpin for NotificationFilterConfig
impl UnwindSafe for NotificationFilterConfig
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