Struct aws_sdk_iot::types::Behavior
source · #[non_exhaustive]pub struct Behavior {
pub name: String,
pub metric: Option<String>,
pub metric_dimension: Option<MetricDimension>,
pub criteria: Option<BehaviorCriteria>,
pub suppress_alerts: Option<bool>,
pub export_metric: Option<bool>,
}
Expand description
A Device Defender security profile behavior.
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
The name you've given to the behavior.
metric: Option<String>
What is measured by the behavior.
metric_dimension: Option<MetricDimension>
The dimension for a metric in your behavior. For example, using a TOPIC_FILTER
dimension, you can narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified in the dimension. This can't be used with custom metrics.
criteria: Option<BehaviorCriteria>
The criteria that determine if a device is behaving normally in regard to the metric
.
In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
suppress_alerts: Option<bool>
Suppresses alerts.
export_metric: Option<bool>
Value indicates exporting metrics related to the behavior when it is true.
Implementations§
source§impl Behavior
impl Behavior
sourcepub fn metric_dimension(&self) -> Option<&MetricDimension>
pub fn metric_dimension(&self) -> Option<&MetricDimension>
The dimension for a metric in your behavior. For example, using a TOPIC_FILTER
dimension, you can narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified in the dimension. This can't be used with custom metrics.
sourcepub fn criteria(&self) -> Option<&BehaviorCriteria>
pub fn criteria(&self) -> Option<&BehaviorCriteria>
The criteria that determine if a device is behaving normally in regard to the metric
.
In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
sourcepub fn suppress_alerts(&self) -> Option<bool>
pub fn suppress_alerts(&self) -> Option<bool>
Suppresses alerts.
sourcepub fn export_metric(&self) -> Option<bool>
pub fn export_metric(&self) -> Option<bool>
Value indicates exporting metrics related to the behavior when it is true.
Trait Implementations§
source§impl PartialEq for Behavior
impl PartialEq for Behavior
impl StructuralPartialEq for Behavior
Auto Trait Implementations§
impl Freeze for Behavior
impl RefUnwindSafe for Behavior
impl Send for Behavior
impl Sync for Behavior
impl Unpin for Behavior
impl UnwindSafe for Behavior
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