Struct aws_sdk_xray::model::SamplingTargetDocument
source · [−]#[non_exhaustive]pub struct SamplingTargetDocument { /* private fields */ }
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.
Implementations
sourceimpl 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.
sourceimpl SamplingTargetDocument
impl SamplingTargetDocument
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SamplingTargetDocument
.
Trait Implementations
sourceimpl Clone for SamplingTargetDocument
impl Clone for SamplingTargetDocument
sourcefn clone(&self) -> SamplingTargetDocument
fn clone(&self) -> SamplingTargetDocument
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SamplingTargetDocument
impl Debug for SamplingTargetDocument
sourceimpl PartialEq<SamplingTargetDocument> for SamplingTargetDocument
impl PartialEq<SamplingTargetDocument> for SamplingTargetDocument
sourcefn eq(&self, other: &SamplingTargetDocument) -> bool
fn eq(&self, other: &SamplingTargetDocument) -> bool
impl StructuralPartialEq for SamplingTargetDocument
Auto Trait Implementations
impl RefUnwindSafe for SamplingTargetDocument
impl Send for SamplingTargetDocument
impl Sync for SamplingTargetDocument
impl Unpin for SamplingTargetDocument
impl UnwindSafe for SamplingTargetDocument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more