Struct aws_sdk_codeguruprofiler::types::Anomaly
source · #[non_exhaustive]pub struct Anomaly {
pub metric: Option<Metric>,
pub reason: Option<String>,
pub instances: Option<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: Option<String>
The reason for which metric was flagged as anomalous.
instances: Option<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) -> Option<&[AnomalyInstance]>
pub fn instances(&self) -> Option<&[AnomalyInstance]>
A list of the instances of the detected anomalies during the requested period.