#[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 ==
.