Struct aws_sdk_xray::types::SamplingTargetDocument
source · #[non_exhaustive]pub struct SamplingTargetDocument {
pub rule_name: Option<String>,
pub fixed_rate: f64,
pub reservoir_quota: Option<i32>,
pub reservoir_quota_ttl: Option<DateTime>,
pub interval: Option<i32>,
}
Expand description
Temporary changes to a sampling rule configuration. To meet the global sampling target for a rule, X-Ray calculates a new reservoir for each service based on the recent sampling results of all services that called GetSamplingTargets.
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.rule_name: Option<String>
The name of the sampling rule.
fixed_rate: f64
The percentage of matching requests to instrument, after the reservoir is exhausted.
reservoir_quota: Option<i32>
The number of requests per second that X-Ray allocated for this service.
reservoir_quota_ttl: Option<DateTime>
When the reservoir quota expires.
interval: Option<i32>
The number of seconds for the service to wait before getting sampling targets again.
Implementations§
source§impl SamplingTargetDocument
impl SamplingTargetDocument
sourcepub fn fixed_rate(&self) -> f64
pub fn fixed_rate(&self) -> f64
The percentage of matching requests to instrument, after the reservoir is exhausted.
sourcepub fn reservoir_quota(&self) -> Option<i32>
pub fn reservoir_quota(&self) -> Option<i32>
The number of requests per second that X-Ray allocated for this service.
sourcepub fn reservoir_quota_ttl(&self) -> Option<&DateTime>
pub fn reservoir_quota_ttl(&self) -> Option<&DateTime>
When the reservoir quota expires.
source§impl SamplingTargetDocument
impl SamplingTargetDocument
sourcepub fn builder() -> SamplingTargetDocumentBuilder
pub fn builder() -> SamplingTargetDocumentBuilder
Creates a new builder-style object to manufacture SamplingTargetDocument
.
Trait Implementations§
source§impl Clone for SamplingTargetDocument
impl Clone for SamplingTargetDocument
source§fn clone(&self) -> SamplingTargetDocument
fn clone(&self) -> SamplingTargetDocument
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SamplingTargetDocument
impl Debug for SamplingTargetDocument
source§impl PartialEq for SamplingTargetDocument
impl PartialEq for SamplingTargetDocument
source§fn eq(&self, other: &SamplingTargetDocument) -> bool
fn eq(&self, other: &SamplingTargetDocument) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SamplingTargetDocument
Auto Trait Implementations§
impl Freeze for SamplingTargetDocument
impl RefUnwindSafe for SamplingTargetDocument
impl Send for SamplingTargetDocument
impl Sync for SamplingTargetDocument
impl Unpin for SamplingTargetDocument
impl UnwindSafe for SamplingTargetDocument
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