Struct aws_sdk_codeguruprofiler::types::Anomaly
source · #[non_exhaustive]pub struct Anomaly {
pub metric: Option<Metric>,
pub reason: String,
pub instances: Vec<AnomalyInstance>,
}
Expand description
Details about an anomaly in a specific metric of application profile. The anomaly is detected using analysis of the metric data over a period of time.
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.metric: Option<Metric>
Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.
reason: String
The reason for which metric was flagged as anomalous.
instances: Vec<AnomalyInstance>
A list of the instances of the detected anomalies during the requested period.
Implementations§
source§impl Anomaly
impl Anomaly
sourcepub fn metric(&self) -> Option<&Metric>
pub fn metric(&self) -> Option<&Metric>
Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.
sourcepub fn instances(&self) -> &[AnomalyInstance]
pub fn instances(&self) -> &[AnomalyInstance]
A list of the instances of the detected anomalies during the requested period.
Trait Implementations§
source§impl PartialEq for Anomaly
impl PartialEq for Anomaly
impl StructuralPartialEq for Anomaly
Auto Trait Implementations§
impl Freeze for Anomaly
impl RefUnwindSafe for Anomaly
impl Send for Anomaly
impl Sync for Anomaly
impl Unpin for Anomaly
impl UnwindSafe for Anomaly
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