#[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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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.