#[non_exhaustive]pub struct GetSampledRequestsOutput {
pub sampled_requests: Option<Vec<SampledHttpRequest>>,
pub population_size: i64,
pub time_window: Option<TimeWindow>,
/* 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.sampled_requests: Option<Vec<SampledHttpRequest>>
A complex type that contains detailed information about each of the requests in the sample.
population_size: i64
The total number of requests from which GetSampledRequests
got a sample of MaxItems
requests. If PopulationSize
is less than MaxItems
, the sample includes every request that your AWS resource received during the specified time range.
time_window: Option<TimeWindow>
Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request, GetSampledRequests
returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.
Implementations§
source§impl GetSampledRequestsOutput
impl GetSampledRequestsOutput
sourcepub fn sampled_requests(&self) -> &[SampledHttpRequest]
pub fn sampled_requests(&self) -> &[SampledHttpRequest]
A complex type that contains detailed information about each of the requests in the sample.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sampled_requests.is_none()
.
sourcepub fn population_size(&self) -> i64
pub fn population_size(&self) -> i64
The total number of requests from which GetSampledRequests
got a sample of MaxItems
requests. If PopulationSize
is less than MaxItems
, the sample includes every request that your AWS resource received during the specified time range.
sourcepub fn time_window(&self) -> Option<&TimeWindow>
pub fn time_window(&self) -> Option<&TimeWindow>
Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request, GetSampledRequests
returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.
source§impl GetSampledRequestsOutput
impl GetSampledRequestsOutput
sourcepub fn builder() -> GetSampledRequestsOutputBuilder
pub fn builder() -> GetSampledRequestsOutputBuilder
Creates a new builder-style object to manufacture GetSampledRequestsOutput
.
Trait Implementations§
source§impl Clone for GetSampledRequestsOutput
impl Clone for GetSampledRequestsOutput
source§fn clone(&self) -> GetSampledRequestsOutput
fn clone(&self) -> GetSampledRequestsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetSampledRequestsOutput
impl Debug for GetSampledRequestsOutput
source§impl PartialEq for GetSampledRequestsOutput
impl PartialEq for GetSampledRequestsOutput
source§fn eq(&self, other: &GetSampledRequestsOutput) -> bool
fn eq(&self, other: &GetSampledRequestsOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetSampledRequestsOutput
impl RequestId for GetSampledRequestsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetSampledRequestsOutput
Auto Trait Implementations§
impl Freeze for GetSampledRequestsOutput
impl RefUnwindSafe for GetSampledRequestsOutput
impl Send for GetSampledRequestsOutput
impl Sync for GetSampledRequestsOutput
impl Unpin for GetSampledRequestsOutput
impl UnwindSafe for GetSampledRequestsOutput
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