Struct aws_sdk_codegurusecurity::types::MetricsSummary
source · #[non_exhaustive]pub struct MetricsSummary {
pub date: Option<DateTime>,
pub open_findings: Option<FindingMetricsValuePerSeverity>,
pub categories_with_most_findings: Option<Vec<CategoryWithFindingNum>>,
pub scans_with_most_open_findings: Option<Vec<ScanNameWithFindingNum>>,
pub scans_with_most_open_critical_findings: Option<Vec<ScanNameWithFindingNum>>,
}
Expand description
A summary of metrics for an account as of a specified date.
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.date: Option<DateTime>
The date from which the metrics summary information was retrieved.
open_findings: Option<FindingMetricsValuePerSeverity>
The number of open findings of each severity.
categories_with_most_findings: Option<Vec<CategoryWithFindingNum>>
A list of CategoryWithFindingNum
objects for the top 5 finding categories with the most findings.
scans_with_most_open_findings: Option<Vec<ScanNameWithFindingNum>>
A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open findings.
scans_with_most_open_critical_findings: Option<Vec<ScanNameWithFindingNum>>
A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open critical findings.
Implementations§
source§impl MetricsSummary
impl MetricsSummary
sourcepub fn date(&self) -> Option<&DateTime>
pub fn date(&self) -> Option<&DateTime>
The date from which the metrics summary information was retrieved.
sourcepub fn open_findings(&self) -> Option<&FindingMetricsValuePerSeverity>
pub fn open_findings(&self) -> Option<&FindingMetricsValuePerSeverity>
The number of open findings of each severity.
sourcepub fn categories_with_most_findings(&self) -> &[CategoryWithFindingNum]
pub fn categories_with_most_findings(&self) -> &[CategoryWithFindingNum]
A list of CategoryWithFindingNum
objects for the top 5 finding categories with the most findings.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .categories_with_most_findings.is_none()
.
sourcepub fn scans_with_most_open_findings(&self) -> &[ScanNameWithFindingNum]
pub fn scans_with_most_open_findings(&self) -> &[ScanNameWithFindingNum]
A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open findings.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .scans_with_most_open_findings.is_none()
.
sourcepub fn scans_with_most_open_critical_findings(
&self,
) -> &[ScanNameWithFindingNum]
pub fn scans_with_most_open_critical_findings( &self, ) -> &[ScanNameWithFindingNum]
A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open critical findings.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .scans_with_most_open_critical_findings.is_none()
.
source§impl MetricsSummary
impl MetricsSummary
sourcepub fn builder() -> MetricsSummaryBuilder
pub fn builder() -> MetricsSummaryBuilder
Creates a new builder-style object to manufacture MetricsSummary
.
Trait Implementations§
source§impl Clone for MetricsSummary
impl Clone for MetricsSummary
source§fn clone(&self) -> MetricsSummary
fn clone(&self) -> MetricsSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricsSummary
impl Debug for MetricsSummary
source§impl PartialEq for MetricsSummary
impl PartialEq for MetricsSummary
source§fn eq(&self, other: &MetricsSummary) -> bool
fn eq(&self, other: &MetricsSummary) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricsSummary
Auto Trait Implementations§
impl Freeze for MetricsSummary
impl RefUnwindSafe for MetricsSummary
impl Send for MetricsSummary
impl Sync for MetricsSummary
impl Unpin for MetricsSummary
impl UnwindSafe for MetricsSummary
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