#[non_exhaustive]pub struct ApplicationMetrics {
pub duration: Option<i32>,
pub request_count: i32,
pub status_codes: Option<StatusCodes>,
pub latency: Option<Latency>,
}
Expand description
Application request metrics for an AWS Elastic Beanstalk environment.
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.duration: Option<i32>
The amount of time that the metrics cover (usually 10 seconds). For example, you might have 5 requests (request_count
) within the most recent time slice of 10 seconds (duration
).
request_count: i32
Average number of requests handled by the web server per second over the last 10 seconds.
status_codes: Option<StatusCodes>
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.
latency: Option<Latency>
Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one millisecond resolution.
Implementations§
source§impl ApplicationMetrics
impl ApplicationMetrics
sourcepub fn duration(&self) -> Option<i32>
pub fn duration(&self) -> Option<i32>
The amount of time that the metrics cover (usually 10 seconds). For example, you might have 5 requests (request_count
) within the most recent time slice of 10 seconds (duration
).
sourcepub fn request_count(&self) -> i32
pub fn request_count(&self) -> i32
Average number of requests handled by the web server per second over the last 10 seconds.
sourcepub fn status_codes(&self) -> Option<&StatusCodes>
pub fn status_codes(&self) -> Option<&StatusCodes>
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.
source§impl ApplicationMetrics
impl ApplicationMetrics
sourcepub fn builder() -> ApplicationMetricsBuilder
pub fn builder() -> ApplicationMetricsBuilder
Creates a new builder-style object to manufacture ApplicationMetrics
.
Trait Implementations§
source§impl Clone for ApplicationMetrics
impl Clone for ApplicationMetrics
source§fn clone(&self) -> ApplicationMetrics
fn clone(&self) -> ApplicationMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ApplicationMetrics
impl Debug for ApplicationMetrics
source§impl PartialEq for ApplicationMetrics
impl PartialEq for ApplicationMetrics
source§fn eq(&self, other: &ApplicationMetrics) -> bool
fn eq(&self, other: &ApplicationMetrics) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApplicationMetrics
Auto Trait Implementations§
impl Freeze for ApplicationMetrics
impl RefUnwindSafe for ApplicationMetrics
impl Send for ApplicationMetrics
impl Sync for ApplicationMetrics
impl Unpin for ApplicationMetrics
impl UnwindSafe for ApplicationMetrics
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