Struct aws_sdk_xray::model::SamplingRuleUpdate
source · [−]#[non_exhaustive]pub struct SamplingRuleUpdate { /* private fields */ }
Expand description
A document specifying changes to a sampling rule's configuration.
Implementations
sourceimpl SamplingRuleUpdate
impl SamplingRuleUpdate
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) -> Option<f64>
pub fn fixed_rate(&self) -> Option<f64>
The percentage of matching requests to instrument, after the reservoir is exhausted.
sourcepub fn reservoir_size(&self) -> Option<i32>
pub fn reservoir_size(&self) -> Option<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 SamplingRuleUpdate
impl SamplingRuleUpdate
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SamplingRuleUpdate
.
Trait Implementations
sourceimpl Clone for SamplingRuleUpdate
impl Clone for SamplingRuleUpdate
sourcefn clone(&self) -> SamplingRuleUpdate
fn clone(&self) -> SamplingRuleUpdate
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more