#[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§
source§impl 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) -> &[MitigationAction]
pub fn actions_definition(&self) -> &[MitigationAction]
The definition of the actions.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .actions_definition.is_none()
.
sourcepub fn task_statistics(&self) -> Option<&DetectMitigationActionsTaskStatistics>
pub fn task_statistics(&self) -> Option<&DetectMitigationActionsTaskStatistics>
The statistics of a mitigation action task.
source§impl DetectMitigationActionsTaskSummary
impl DetectMitigationActionsTaskSummary
sourcepub fn builder() -> DetectMitigationActionsTaskSummaryBuilder
pub fn builder() -> DetectMitigationActionsTaskSummaryBuilder
Creates a new builder-style object to manufacture DetectMitigationActionsTaskSummary
.
Trait Implementations§
source§impl Clone for DetectMitigationActionsTaskSummary
impl Clone for DetectMitigationActionsTaskSummary
source§fn clone(&self) -> DetectMitigationActionsTaskSummary
fn clone(&self) -> DetectMitigationActionsTaskSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for DetectMitigationActionsTaskSummary
impl PartialEq for DetectMitigationActionsTaskSummary
source§fn eq(&self, other: &DetectMitigationActionsTaskSummary) -> bool
fn eq(&self, other: &DetectMitigationActionsTaskSummary) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DetectMitigationActionsTaskSummary
Auto Trait Implementations§
impl Freeze for DetectMitigationActionsTaskSummary
impl RefUnwindSafe for DetectMitigationActionsTaskSummary
impl Send for DetectMitigationActionsTaskSummary
impl Sync for DetectMitigationActionsTaskSummary
impl Unpin for DetectMitigationActionsTaskSummary
impl UnwindSafe for DetectMitigationActionsTaskSummary
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