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 ==
.