Struct aws_sdk_xray::model::SamplingRule
source · [−]#[non_exhaustive]pub struct SamplingRule { /* private fields */ }Expand description
A sampling rule that services use to decide whether to instrument a request. Rule fields can match properties of the service, or properties of a request. The service can ignore rules that don't match its properties.
Implementations
sourceimpl SamplingRule
impl SamplingRule
sourcepub fn rule_name(&self) -> Option<&str>
pub fn rule_name(&self) -> Option<&str>
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
sourcepub fn rule_arn(&self) -> Option<&str>
pub fn rule_arn(&self) -> Option<&str>
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
Matches the ARN of the Amazon Web Services resource on which the service runs.
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_size(&self) -> i32
pub fn reservoir_size(&self) -> i32
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
Matches the name that the service uses to identify itself in segments.
sourcepub fn service_type(&self) -> Option<&str>
pub fn service_type(&self) -> Option<&str>
Matches the origin that the service uses to identify its type in segments.
sourcepub fn http_method(&self) -> Option<&str>
pub fn http_method(&self) -> Option<&str>
Matches the HTTP method of a request.
sourceimpl SamplingRule
impl SamplingRule
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SamplingRule.
Trait Implementations
sourceimpl Clone for SamplingRule
impl Clone for SamplingRule
sourcefn clone(&self) -> SamplingRule
fn clone(&self) -> SamplingRule
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more