Struct aws_sdk_xray::model::sampling_target_document::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for SamplingTargetDocument
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_rule_name(self, input: Option<String>) -> Self
pub fn set_rule_name(self, input: Option<String>) -> Self
The name of the sampling rule.
sourcepub fn fixed_rate(self, input: f64) -> Self
pub fn fixed_rate(self, input: f64) -> Self
The percentage of matching requests to instrument, after the reservoir is exhausted.
sourcepub fn set_fixed_rate(self, input: Option<f64>) -> Self
pub fn set_fixed_rate(self, input: Option<f64>) -> Self
The percentage of matching requests to instrument, after the reservoir is exhausted.
sourcepub fn reservoir_quota(self, input: i32) -> Self
pub fn reservoir_quota(self, input: i32) -> Self
The number of requests per second that X-Ray allocated for this service.
sourcepub fn set_reservoir_quota(self, input: Option<i32>) -> Self
pub fn set_reservoir_quota(self, input: Option<i32>) -> Self
The number of requests per second that X-Ray allocated for this service.
sourcepub fn reservoir_quota_ttl(self, input: DateTime) -> Self
pub fn reservoir_quota_ttl(self, input: DateTime) -> Self
When the reservoir quota expires.
sourcepub fn set_reservoir_quota_ttl(self, input: Option<DateTime>) -> Self
pub fn set_reservoir_quota_ttl(self, input: Option<DateTime>) -> Self
When the reservoir quota expires.
sourcepub fn interval(self, input: i32) -> Self
pub fn interval(self, input: i32) -> Self
The number of seconds for the service to wait before getting sampling targets again.
sourcepub fn set_interval(self, input: Option<i32>) -> Self
pub fn set_interval(self, input: Option<i32>) -> Self
The number of seconds for the service to wait before getting sampling targets again.
sourcepub fn build(self) -> SamplingTargetDocument
pub fn build(self) -> SamplingTargetDocument
Consumes the builder and constructs a SamplingTargetDocument
.