Struct aws_sdk_evidently::types::ScheduledSplit
source · #[non_exhaustive]pub struct ScheduledSplit {
pub start_time: DateTime,
pub group_weights: Option<HashMap<String, i64>>,
pub segment_overrides: Option<Vec<SegmentOverride>>,
}Expand description
This structure defines the traffic allocation percentages among the feature variations during one step of a launch, and the start time of that step.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start_time: DateTimeThe date and time that this step of the launch starts.
group_weights: Option<HashMap<String, i64>>The traffic allocation percentages among the feature variations during one step of a launch. This is a set of key-value pairs. The keys are variation names. The values represent the percentage of traffic to allocate to that variation during this step.
The values is expressed in thousandths of a percent, so assigning a weight of 50000 assigns 50% of traffic to that variation.
If the sum of the weights for all the variations in a segment override does not add up to 100,000, then the remaining traffic that matches this segment is not assigned by this segment override, and instead moves on to the next segment override or the default traffic split.
segment_overrides: Option<Vec<SegmentOverride>>Use this parameter to specify different traffic splits for one or more audience segments. A segment is a portion of your audience that share one or more characteristics. Examples could be Chrome browser users, users in Europe, or Firefox browser users in Europe who also fit other criteria that your application collects, such as age.
This parameter is an array of up to six segment override objects. Each of these objects specifies a segment that you have already created, and defines the traffic split for that segment.
Implementations§
source§impl ScheduledSplit
impl ScheduledSplit
sourcepub fn start_time(&self) -> &DateTime
pub fn start_time(&self) -> &DateTime
The date and time that this step of the launch starts.
sourcepub fn group_weights(&self) -> Option<&HashMap<String, i64>>
pub fn group_weights(&self) -> Option<&HashMap<String, i64>>
The traffic allocation percentages among the feature variations during one step of a launch. This is a set of key-value pairs. The keys are variation names. The values represent the percentage of traffic to allocate to that variation during this step.
The values is expressed in thousandths of a percent, so assigning a weight of 50000 assigns 50% of traffic to that variation.
If the sum of the weights for all the variations in a segment override does not add up to 100,000, then the remaining traffic that matches this segment is not assigned by this segment override, and instead moves on to the next segment override or the default traffic split.
sourcepub fn segment_overrides(&self) -> &[SegmentOverride]
pub fn segment_overrides(&self) -> &[SegmentOverride]
Use this parameter to specify different traffic splits for one or more audience segments. A segment is a portion of your audience that share one or more characteristics. Examples could be Chrome browser users, users in Europe, or Firefox browser users in Europe who also fit other criteria that your application collects, such as age.
This parameter is an array of up to six segment override objects. Each of these objects specifies a segment that you have already created, and defines the traffic split for that segment.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .segment_overrides.is_none().
source§impl ScheduledSplit
impl ScheduledSplit
sourcepub fn builder() -> ScheduledSplitBuilder
pub fn builder() -> ScheduledSplitBuilder
Creates a new builder-style object to manufacture ScheduledSplit.
Trait Implementations§
source§impl Clone for ScheduledSplit
impl Clone for ScheduledSplit
source§fn clone(&self) -> ScheduledSplit
fn clone(&self) -> ScheduledSplit
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ScheduledSplit
impl Debug for ScheduledSplit
source§impl PartialEq for ScheduledSplit
impl PartialEq for ScheduledSplit
source§fn eq(&self, other: &ScheduledSplit) -> bool
fn eq(&self, other: &ScheduledSplit) -> bool
self and other values to be equal, and is used
by ==.