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§
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() -> Builder
pub fn builder() -> Builder
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SamplingTargetDocument
impl Debug for SamplingTargetDocument
source§impl PartialEq<SamplingTargetDocument> for SamplingTargetDocument
impl PartialEq<SamplingTargetDocument> for SamplingTargetDocument
source§fn eq(&self, other: &SamplingTargetDocument) -> bool
fn eq(&self, other: &SamplingTargetDocument) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.