Struct aws_sdk_xray::types::builders::ServiceStatisticsBuilder
source · #[non_exhaustive]pub struct ServiceStatisticsBuilder { /* private fields */ }
Expand description
A builder for ServiceStatistics
.
Implementations§
source§impl ServiceStatisticsBuilder
impl ServiceStatisticsBuilder
sourcepub fn ok_count(self, input: i64) -> Self
pub fn ok_count(self, input: i64) -> Self
The number of requests that completed with a 2xx Success status code.
sourcepub fn set_ok_count(self, input: Option<i64>) -> Self
pub fn set_ok_count(self, input: Option<i64>) -> Self
The number of requests that completed with a 2xx Success status code.
sourcepub fn get_ok_count(&self) -> &Option<i64>
pub fn get_ok_count(&self) -> &Option<i64>
The number of requests that completed with a 2xx Success status code.
sourcepub fn error_statistics(self, input: ErrorStatistics) -> Self
pub fn error_statistics(self, input: ErrorStatistics) -> Self
Information about requests that failed with a 4xx Client Error status code.
sourcepub fn set_error_statistics(self, input: Option<ErrorStatistics>) -> Self
pub fn set_error_statistics(self, input: Option<ErrorStatistics>) -> Self
Information about requests that failed with a 4xx Client Error status code.
sourcepub fn get_error_statistics(&self) -> &Option<ErrorStatistics>
pub fn get_error_statistics(&self) -> &Option<ErrorStatistics>
Information about requests that failed with a 4xx Client Error status code.
sourcepub fn fault_statistics(self, input: FaultStatistics) -> Self
pub fn fault_statistics(self, input: FaultStatistics) -> Self
Information about requests that failed with a 5xx Server Error status code.
sourcepub fn set_fault_statistics(self, input: Option<FaultStatistics>) -> Self
pub fn set_fault_statistics(self, input: Option<FaultStatistics>) -> Self
Information about requests that failed with a 5xx Server Error status code.
sourcepub fn get_fault_statistics(&self) -> &Option<FaultStatistics>
pub fn get_fault_statistics(&self) -> &Option<FaultStatistics>
Information about requests that failed with a 5xx Server Error status code.
sourcepub fn total_count(self, input: i64) -> Self
pub fn total_count(self, input: i64) -> Self
The total number of completed requests.
sourcepub fn set_total_count(self, input: Option<i64>) -> Self
pub fn set_total_count(self, input: Option<i64>) -> Self
The total number of completed requests.
sourcepub fn get_total_count(&self) -> &Option<i64>
pub fn get_total_count(&self) -> &Option<i64>
The total number of completed requests.
sourcepub fn total_response_time(self, input: f64) -> Self
pub fn total_response_time(self, input: f64) -> Self
The aggregate response time of completed requests.
sourcepub fn set_total_response_time(self, input: Option<f64>) -> Self
pub fn set_total_response_time(self, input: Option<f64>) -> Self
The aggregate response time of completed requests.
sourcepub fn get_total_response_time(&self) -> &Option<f64>
pub fn get_total_response_time(&self) -> &Option<f64>
The aggregate response time of completed requests.
sourcepub fn build(self) -> ServiceStatistics
pub fn build(self) -> ServiceStatistics
Consumes the builder and constructs a ServiceStatistics
.
Trait Implementations§
source§impl Clone for ServiceStatisticsBuilder
impl Clone for ServiceStatisticsBuilder
source§fn clone(&self) -> ServiceStatisticsBuilder
fn clone(&self) -> ServiceStatisticsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceStatisticsBuilder
impl Debug for ServiceStatisticsBuilder
source§impl Default for ServiceStatisticsBuilder
impl Default for ServiceStatisticsBuilder
source§fn default() -> ServiceStatisticsBuilder
fn default() -> ServiceStatisticsBuilder
source§impl PartialEq for ServiceStatisticsBuilder
impl PartialEq for ServiceStatisticsBuilder
impl StructuralPartialEq for ServiceStatisticsBuilder
Auto Trait Implementations§
impl Freeze for ServiceStatisticsBuilder
impl RefUnwindSafe for ServiceStatisticsBuilder
impl Send for ServiceStatisticsBuilder
impl Sync for ServiceStatisticsBuilder
impl Unpin for ServiceStatisticsBuilder
impl UnwindSafe for ServiceStatisticsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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