public interface VariationTargetingLifecycleEvent extends RuntimeLifecycleEvent, VariationAwareLifecycleEvent, StateAwareLifecycleEvent
Life cycle event triggered when Variant is about to target a user session for a test, but after the session has already been qualified for this test. This event will not be triggered if this session has been disqualified for the test. If no hooks for this event are defined in the experiment schema, Variant server targets the session randomly, according to experience weights supplied in the schema. If no applicable targeting hooks have been defined and no exeprience weights provided in the schema, a run-time user error will result.
If a user hook, subscribed to this event, wishes to target a session to a particular test experience,
post() method must return an object of type
VariationTargetingLifecycleEvent.PostResult. An empty post result
object is obtained by calling the
It is important to understand that if custom targeting decision is not pseudo-random, then the outcome of such experiment may not be statistically sound: there might be some reason other than the difference in treatment, that explains the difference in measurement.
|Modifier and Type||Interface and Description|
The return type of the
Variant Experience Server release 0.9.3. Updated 06 Dec 2018.
Copyright © 2018 Variant Inc.