Struct aws_sdk_cloudtrail::operation::list_insights_metric_data::ListInsightsMetricDataOutput
source · #[non_exhaustive]pub struct ListInsightsMetricDataOutput {
pub event_source: Option<String>,
pub event_name: Option<String>,
pub insight_type: Option<InsightType>,
pub error_code: Option<String>,
pub timestamps: Option<Vec<DateTime>>,
pub values: Option<Vec<f64>>,
pub next_token: Option<String>,
/* private fields */
}
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.event_source: Option<String>
The Amazon Web Services service to which the request was made, such as iam.amazonaws.com
or s3.amazonaws.com
.
event_name: Option<String>
The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
insight_type: Option<InsightType>
The type of CloudTrail Insights event, which is either ApiCallRateInsight
or ApiErrorRateInsight
. The ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. The ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes.
error_code: Option<String>
Only returned if InsightType
parameter was set to ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve data for. For example, AccessDenied
.
timestamps: Option<Vec<DateTime>>
List of timestamps at intervals corresponding to the specified time period.
values: Option<Vec<f64>>
List of values representing the API call rate or error rate at each timestamp. The number of values is equal to the number of timestamps.
next_token: Option<String>
Only returned if the full results could not be returned in a single query. You can set the NextToken
parameter in the next request to this value to continue retrieval.
Implementations§
source§impl ListInsightsMetricDataOutput
impl ListInsightsMetricDataOutput
sourcepub fn event_source(&self) -> Option<&str>
pub fn event_source(&self) -> Option<&str>
The Amazon Web Services service to which the request was made, such as iam.amazonaws.com
or s3.amazonaws.com
.
sourcepub fn event_name(&self) -> Option<&str>
pub fn event_name(&self) -> Option<&str>
The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
sourcepub fn insight_type(&self) -> Option<&InsightType>
pub fn insight_type(&self) -> Option<&InsightType>
The type of CloudTrail Insights event, which is either ApiCallRateInsight
or ApiErrorRateInsight
. The ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. The ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes.
sourcepub fn error_code(&self) -> Option<&str>
pub fn error_code(&self) -> Option<&str>
Only returned if InsightType
parameter was set to ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve data for. For example, AccessDenied
.
sourcepub fn timestamps(&self) -> &[DateTime]
pub fn timestamps(&self) -> &[DateTime]
List of timestamps at intervals corresponding to the specified time period.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .timestamps.is_none()
.
sourcepub fn values(&self) -> &[f64]
pub fn values(&self) -> &[f64]
List of values representing the API call rate or error rate at each timestamp. The number of values is equal to the number of timestamps.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .values.is_none()
.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
Only returned if the full results could not be returned in a single query. You can set the NextToken
parameter in the next request to this value to continue retrieval.
source§impl ListInsightsMetricDataOutput
impl ListInsightsMetricDataOutput
sourcepub fn builder() -> ListInsightsMetricDataOutputBuilder
pub fn builder() -> ListInsightsMetricDataOutputBuilder
Creates a new builder-style object to manufacture ListInsightsMetricDataOutput
.
Trait Implementations§
source§impl Clone for ListInsightsMetricDataOutput
impl Clone for ListInsightsMetricDataOutput
source§fn clone(&self) -> ListInsightsMetricDataOutput
fn clone(&self) -> ListInsightsMetricDataOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListInsightsMetricDataOutput
impl Debug for ListInsightsMetricDataOutput
source§impl PartialEq for ListInsightsMetricDataOutput
impl PartialEq for ListInsightsMetricDataOutput
source§fn eq(&self, other: &ListInsightsMetricDataOutput) -> bool
fn eq(&self, other: &ListInsightsMetricDataOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for ListInsightsMetricDataOutput
impl RequestId for ListInsightsMetricDataOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for ListInsightsMetricDataOutput
Auto Trait Implementations§
impl Freeze for ListInsightsMetricDataOutput
impl RefUnwindSafe for ListInsightsMetricDataOutput
impl Send for ListInsightsMetricDataOutput
impl Sync for ListInsightsMetricDataOutput
impl Unpin for ListInsightsMetricDataOutput
impl UnwindSafe for ListInsightsMetricDataOutput
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