#[non_exhaustive]pub struct DetectMitigationActionsTaskSummary {
pub task_id: Option<String>,
pub task_status: Option<DetectMitigationActionsTaskStatus>,
pub task_start_time: Option<DateTime>,
pub task_end_time: Option<DateTime>,
pub target: Option<DetectMitigationActionsTaskTarget>,
pub violation_event_occurrence_range: Option<ViolationEventOccurrenceRange>,
pub only_active_violations_included: bool,
pub suppressed_alerts_included: bool,
pub actions_definition: Option<Vec<MitigationAction>>,
pub task_statistics: Option<DetectMitigationActionsTaskStatistics>,
}
Expand description
The summary of the mitigation action tasks.
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.task_id: Option<String>
The unique identifier of the task.
task_status: Option<DetectMitigationActionsTaskStatus>
The status of the task.
task_start_time: Option<DateTime>
The date the task started.
task_end_time: Option<DateTime>
The date the task ended.
target: Option<DetectMitigationActionsTaskTarget>
Specifies the ML Detect findings to which the mitigation actions are applied.
violation_event_occurrence_range: Option<ViolationEventOccurrenceRange>
Specifies the time period of which violation events occurred between.
only_active_violations_included: bool
Includes only active violations.
suppressed_alerts_included: bool
Includes suppressed alerts.
actions_definition: Option<Vec<MitigationAction>>
The definition of the actions.
task_statistics: Option<DetectMitigationActionsTaskStatistics>
The statistics of a mitigation action task.
Implementations
sourceimpl DetectMitigationActionsTaskSummary
impl DetectMitigationActionsTaskSummary
sourcepub fn task_status(&self) -> Option<&DetectMitigationActionsTaskStatus>
pub fn task_status(&self) -> Option<&DetectMitigationActionsTaskStatus>
The status of the task.
sourcepub fn task_start_time(&self) -> Option<&DateTime>
pub fn task_start_time(&self) -> Option<&DateTime>
The date the task started.
sourcepub fn task_end_time(&self) -> Option<&DateTime>
pub fn task_end_time(&self) -> Option<&DateTime>
The date the task ended.
sourcepub fn target(&self) -> Option<&DetectMitigationActionsTaskTarget>
pub fn target(&self) -> Option<&DetectMitigationActionsTaskTarget>
Specifies the ML Detect findings to which the mitigation actions are applied.
sourcepub fn violation_event_occurrence_range(
&self
) -> Option<&ViolationEventOccurrenceRange>
pub fn violation_event_occurrence_range(
&self
) -> Option<&ViolationEventOccurrenceRange>
Specifies the time period of which violation events occurred between.
sourcepub fn only_active_violations_included(&self) -> bool
pub fn only_active_violations_included(&self) -> bool
Includes only active violations.
sourcepub fn suppressed_alerts_included(&self) -> bool
pub fn suppressed_alerts_included(&self) -> bool
Includes suppressed alerts.
sourcepub fn actions_definition(&self) -> Option<&[MitigationAction]>
pub fn actions_definition(&self) -> Option<&[MitigationAction]>
The definition of the actions.
sourcepub fn task_statistics(&self) -> Option<&DetectMitigationActionsTaskStatistics>
pub fn task_statistics(&self) -> Option<&DetectMitigationActionsTaskStatistics>
The statistics of a mitigation action task.
sourceimpl DetectMitigationActionsTaskSummary
impl DetectMitigationActionsTaskSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DetectMitigationActionsTaskSummary
Trait Implementations
sourceimpl Clone for DetectMitigationActionsTaskSummary
impl Clone for DetectMitigationActionsTaskSummary
sourcefn clone(&self) -> DetectMitigationActionsTaskSummary
fn clone(&self) -> DetectMitigationActionsTaskSummary
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<DetectMitigationActionsTaskSummary> for DetectMitigationActionsTaskSummary
impl PartialEq<DetectMitigationActionsTaskSummary> for DetectMitigationActionsTaskSummary
sourcefn eq(&self, other: &DetectMitigationActionsTaskSummary) -> bool
fn eq(&self, other: &DetectMitigationActionsTaskSummary) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DetectMitigationActionsTaskSummary) -> bool
fn ne(&self, other: &DetectMitigationActionsTaskSummary) -> bool
This method tests for !=
.
impl StructuralPartialEq for DetectMitigationActionsTaskSummary
Auto Trait Implementations
impl RefUnwindSafe for DetectMitigationActionsTaskSummary
impl Send for DetectMitigationActionsTaskSummary
impl Sync for DetectMitigationActionsTaskSummary
impl Unpin for DetectMitigationActionsTaskSummary
impl UnwindSafe for DetectMitigationActionsTaskSummary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more