Struct aws_sdk_devopsguru::types::Event
source · #[non_exhaustive]pub struct Event {
pub resource_collection: Option<ResourceCollection>,
pub id: Option<String>,
pub time: Option<DateTime>,
pub event_source: Option<String>,
pub name: Option<String>,
pub data_source: Option<EventDataSource>,
pub event_class: Option<EventClass>,
pub resources: Option<Vec<EventResource>>,
}
Expand description
An Amazon Web Services resource event. Amazon Web Services resource events and metrics are analyzed by DevOps Guru to find anomalous behavior and provide recommendations to improve your operational solutions.
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.resource_collection: Option<ResourceCollection>
A collection of Amazon Web Services resources supported by DevOps Guru. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
id: Option<String>
The ID of the event.
time: Option<DateTime>
A Timestamp
that specifies the time the event occurred.
event_source: Option<String>
The Amazon Web Services source that emitted the event.
name: Option<String>
The name of the event.
data_source: Option<EventDataSource>
The source, AWS_CLOUD_TRAIL
or AWS_CODE_DEPLOY
, where DevOps Guru analysis found the event.
event_class: Option<EventClass>
The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.
resources: Option<Vec<EventResource>>
An EventResource
object that contains information about the resource that emitted the event.
Implementations§
source§impl Event
impl Event
sourcepub fn resource_collection(&self) -> Option<&ResourceCollection>
pub fn resource_collection(&self) -> Option<&ResourceCollection>
A collection of Amazon Web Services resources supported by DevOps Guru. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
sourcepub fn time(&self) -> Option<&DateTime>
pub fn time(&self) -> Option<&DateTime>
A Timestamp
that specifies the time the event occurred.
sourcepub fn event_source(&self) -> Option<&str>
pub fn event_source(&self) -> Option<&str>
The Amazon Web Services source that emitted the event.
sourcepub fn data_source(&self) -> Option<&EventDataSource>
pub fn data_source(&self) -> Option<&EventDataSource>
The source, AWS_CLOUD_TRAIL
or AWS_CODE_DEPLOY
, where DevOps Guru analysis found the event.
sourcepub fn event_class(&self) -> Option<&EventClass>
pub fn event_class(&self) -> Option<&EventClass>
The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.
sourcepub fn resources(&self) -> &[EventResource]
pub fn resources(&self) -> &[EventResource]
An EventResource
object that contains information about the resource that emitted the event.
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()
.
Trait Implementations§
source§impl PartialEq for Event
impl PartialEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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