Struct aws_sdk_evidently::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder
source · pub struct EvaluateFeatureFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to EvaluateFeature
.
This operation assigns a feature variation to one given user session. You pass in an entityID
that represents the user. Evidently then checks the evaluation rules and assigns the variation.
The first rules that are evaluated are the override rules. If the user's entityID
matches an override rule, the user is served the variation specified by that rule.
If there is a current launch with this feature that uses segment overrides, and if the user session's evaluationContext
matches a segment rule defined in a segment override, the configuration in the segment overrides is used. For more information about segments, see CreateSegment and Use segments to focus your audience.
If there is a launch with no segment overrides, the user might be assigned to a variation in the launch. The chance of this depends on the percentage of users that are allocated to that launch. If the user is enrolled in the launch, the variation they are served depends on the allocation of the various feature variations used for the launch.
If the user is not assigned to a launch, and there is an ongoing experiment for this feature, the user might be assigned to a variation in the experiment. The chance of this depends on the percentage of users that are allocated to that experiment.
If the experiment uses a segment, then only user sessions with evaluationContext
values that match the segment rule are used in the experiment.
If the user is enrolled in the experiment, the variation they are served depends on the allocation of the various feature variations used for the experiment.
If the user is not assigned to a launch or experiment, they are served the default variation.
Implementations§
source§impl EvaluateFeatureFluentBuilder
impl EvaluateFeatureFluentBuilder
sourcepub fn as_input(&self) -> &EvaluateFeatureInputBuilder
pub fn as_input(&self) -> &EvaluateFeatureInputBuilder
Access the EvaluateFeature as a reference.
sourcepub async fn send(
self
) -> Result<EvaluateFeatureOutput, SdkError<EvaluateFeatureError, HttpResponse>>
pub async fn send( self ) -> Result<EvaluateFeatureOutput, SdkError<EvaluateFeatureError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<EvaluateFeatureOutput, EvaluateFeatureError, Self>
pub fn customize( self ) -> CustomizableOperation<EvaluateFeatureOutput, EvaluateFeatureError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn project(self, input: impl Into<String>) -> Self
pub fn project(self, input: impl Into<String>) -> Self
The name or ARN of the project that contains this feature.
sourcepub fn set_project(self, input: Option<String>) -> Self
pub fn set_project(self, input: Option<String>) -> Self
The name or ARN of the project that contains this feature.
sourcepub fn get_project(&self) -> &Option<String>
pub fn get_project(&self) -> &Option<String>
The name or ARN of the project that contains this feature.
sourcepub fn feature(self, input: impl Into<String>) -> Self
pub fn feature(self, input: impl Into<String>) -> Self
The name of the feature being evaluated.
sourcepub fn set_feature(self, input: Option<String>) -> Self
pub fn set_feature(self, input: Option<String>) -> Self
The name of the feature being evaluated.
sourcepub fn get_feature(&self) -> &Option<String>
pub fn get_feature(&self) -> &Option<String>
The name of the feature being evaluated.
sourcepub fn entity_id(self, input: impl Into<String>) -> Self
pub fn entity_id(self, input: impl Into<String>) -> Self
An internal ID that represents a unique user of the application. This entityID
is checked against any override rules assigned for this feature.
sourcepub fn set_entity_id(self, input: Option<String>) -> Self
pub fn set_entity_id(self, input: Option<String>) -> Self
An internal ID that represents a unique user of the application. This entityID
is checked against any override rules assigned for this feature.
sourcepub fn get_entity_id(&self) -> &Option<String>
pub fn get_entity_id(&self) -> &Option<String>
An internal ID that represents a unique user of the application. This entityID
is checked against any override rules assigned for this feature.
sourcepub fn evaluation_context(self, input: impl Into<String>) -> Self
pub fn evaluation_context(self, input: impl Into<String>) -> Self
A JSON object of attributes that you can optionally pass in as part of the evaluation event sent to Evidently from the user session. Evidently can use this value to match user sessions with defined audience segments. For more information, see Use segments to focus your audience.
If you include this parameter, the value must be a JSON object. A JSON array is not supported.
sourcepub fn set_evaluation_context(self, input: Option<String>) -> Self
pub fn set_evaluation_context(self, input: Option<String>) -> Self
A JSON object of attributes that you can optionally pass in as part of the evaluation event sent to Evidently from the user session. Evidently can use this value to match user sessions with defined audience segments. For more information, see Use segments to focus your audience.
If you include this parameter, the value must be a JSON object. A JSON array is not supported.
sourcepub fn get_evaluation_context(&self) -> &Option<String>
pub fn get_evaluation_context(&self) -> &Option<String>
A JSON object of attributes that you can optionally pass in as part of the evaluation event sent to Evidently from the user session. Evidently can use this value to match user sessions with defined audience segments. For more information, see Use segments to focus your audience.
If you include this parameter, the value must be a JSON object. A JSON array is not supported.
Trait Implementations§
source§impl Clone for EvaluateFeatureFluentBuilder
impl Clone for EvaluateFeatureFluentBuilder
source§fn clone(&self) -> EvaluateFeatureFluentBuilder
fn clone(&self) -> EvaluateFeatureFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for EvaluateFeatureFluentBuilder
impl !RefUnwindSafe for EvaluateFeatureFluentBuilder
impl Send for EvaluateFeatureFluentBuilder
impl Sync for EvaluateFeatureFluentBuilder
impl Unpin for EvaluateFeatureFluentBuilder
impl !UnwindSafe for EvaluateFeatureFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more