#[non_exhaustive]pub struct RecommendationRelatedAnomaly {
pub resources: Option<Vec<RecommendationRelatedAnomalyResource>>,
pub source_details: Option<Vec<RecommendationRelatedAnomalySourceDetail>>,
pub anomaly_id: Option<String>,
}
Expand description
Information about an anomaly that is related to a recommendation.
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.resources: Option<Vec<RecommendationRelatedAnomalyResource>>
An array of objects that represent resources in which DevOps Guru detected anomalous behavior. Each object contains the name and type of the resource.
source_details: Option<Vec<RecommendationRelatedAnomalySourceDetail>>
Information about where the anomalous behavior related the recommendation was found. For example, details in Amazon CloudWatch metrics.
anomaly_id: Option<String>
The ID of an anomaly that generated the insight with this recommendation.
Implementations§
source§impl RecommendationRelatedAnomaly
impl RecommendationRelatedAnomaly
sourcepub fn resources(&self) -> &[RecommendationRelatedAnomalyResource]
pub fn resources(&self) -> &[RecommendationRelatedAnomalyResource]
An array of objects that represent resources in which DevOps Guru detected anomalous behavior. Each object contains the name and type of the resource.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resources.is_none()
.
sourcepub fn source_details(&self) -> &[RecommendationRelatedAnomalySourceDetail]
pub fn source_details(&self) -> &[RecommendationRelatedAnomalySourceDetail]
Information about where the anomalous behavior related the recommendation was found. For example, details in Amazon CloudWatch metrics.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .source_details.is_none()
.
sourcepub fn anomaly_id(&self) -> Option<&str>
pub fn anomaly_id(&self) -> Option<&str>
The ID of an anomaly that generated the insight with this recommendation.
source§impl RecommendationRelatedAnomaly
impl RecommendationRelatedAnomaly
sourcepub fn builder() -> RecommendationRelatedAnomalyBuilder
pub fn builder() -> RecommendationRelatedAnomalyBuilder
Creates a new builder-style object to manufacture RecommendationRelatedAnomaly
.
Trait Implementations§
source§impl Clone for RecommendationRelatedAnomaly
impl Clone for RecommendationRelatedAnomaly
source§fn clone(&self) -> RecommendationRelatedAnomaly
fn clone(&self) -> RecommendationRelatedAnomaly
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationRelatedAnomaly
impl Debug for RecommendationRelatedAnomaly
source§impl PartialEq for RecommendationRelatedAnomaly
impl PartialEq for RecommendationRelatedAnomaly
source§fn eq(&self, other: &RecommendationRelatedAnomaly) -> bool
fn eq(&self, other: &RecommendationRelatedAnomaly) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecommendationRelatedAnomaly
Auto Trait Implementations§
impl Freeze for RecommendationRelatedAnomaly
impl RefUnwindSafe for RecommendationRelatedAnomaly
impl Send for RecommendationRelatedAnomaly
impl Sync for RecommendationRelatedAnomaly
impl Unpin for RecommendationRelatedAnomaly
impl UnwindSafe for RecommendationRelatedAnomaly
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