/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudWatchEvidently.Model { /// /// Container for the parameters to the CreateExperiment operation. /// Creates an Evidently experiment. Before you create an experiment, you must /// create the feature to use for the experiment. /// /// /// /// An experiment helps you make feature design decisions based on evidence and data. /// An experiment can test as many as five variations at once. Evidently collects experiment /// data and analyzes it by statistical methods, and provides clear recommendations about /// which variations perform better. /// /// /// /// You can optionally specify a segment to have the experiment consider /// only certain audience types in the experiment, such as using only user sessions from /// a certain location or who use a certain internet browser. /// /// /// /// Don't use this operation to update an existing experiment. Instead, use UpdateExperiment. /// /// /// public partial class CreateExperimentRequest : AmazonCloudWatchEvidentlyRequest { private string _description; private List _metricGoals = new List(); private string _name; private OnlineAbConfig _onlineAbConfig; private string _project; private string _randomizationSalt; private long? _samplingRate; private string _segment; private Dictionary _tags = new Dictionary(); private List _treatments = new List(); /// /// Gets and sets the property Description. /// /// An optional description of the experiment. /// /// [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property MetricGoals. /// /// An array of structures that defines the metrics used for the experiment, and whether /// a higher or lower value for each metric is the goal. /// /// [AWSProperty(Required=true, Min=1, Max=3)] public List MetricGoals { get { return this._metricGoals; } set { this._metricGoals = value; } } // Check to see if MetricGoals property is set internal bool IsSetMetricGoals() { return this._metricGoals != null && this._metricGoals.Count > 0; } /// /// Gets and sets the property Name. /// /// A name for the new experiment. /// /// [AWSProperty(Required=true, Min=1, Max=127)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property OnlineAbConfig. /// /// A structure that contains the configuration of which variation to use as the "control" /// version. tThe "control" version is used for comparison with other variations. This /// structure also specifies how much experiment traffic is allocated to each variation. /// /// public OnlineAbConfig OnlineAbConfig { get { return this._onlineAbConfig; } set { this._onlineAbConfig = value; } } // Check to see if OnlineAbConfig property is set internal bool IsSetOnlineAbConfig() { return this._onlineAbConfig != null; } /// /// Gets and sets the property Project. /// /// The name or ARN of the project that you want to create the new experiment in. /// /// [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } /// /// Gets and sets the property RandomizationSalt. /// /// When Evidently assigns a particular user session to an experiment, it must use a randomization /// ID to determine which variation the user session is served. This randomization ID /// is a combination of the entity ID and randomizationSalt. If you omit /// randomizationSalt, Evidently uses the experiment name as the randomizationSalt. /// /// [AWSProperty(Min=0, Max=127)] public string RandomizationSalt { get { return this._randomizationSalt; } set { this._randomizationSalt = value; } } // Check to see if RandomizationSalt property is set internal bool IsSetRandomizationSalt() { return this._randomizationSalt != null; } /// /// Gets and sets the property SamplingRate. /// /// The portion of the available audience that you want to allocate to this experiment, /// in thousandths of a percent. The available audience is the total audience minus the /// audience that you have allocated to overrides or current launches of this feature. /// /// /// /// This is represented in thousandths of a percent. For example, specify 10,000 to allocate /// 10% of the available audience. /// /// [AWSProperty(Min=0, Max=100000)] public long SamplingRate { get { return this._samplingRate.GetValueOrDefault(); } set { this._samplingRate = value; } } // Check to see if SamplingRate property is set internal bool IsSetSamplingRate() { return this._samplingRate.HasValue; } /// /// Gets and sets the property Segment. /// /// Specifies an audience segment to use in the experiment. When a segment is used /// in an experiment, only user sessions that match the segment pattern are used in the /// experiment. /// /// [AWSProperty(Min=0, Max=2048)] public string Segment { get { return this._segment; } set { this._segment = value; } } // Check to see if Segment property is set internal bool IsSetSegment() { return this._segment != null; } /// /// Gets and sets the property Tags. /// /// Assigns one or more tags (key-value pairs) to the experiment. /// /// /// /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// /// /// /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// /// /// /// You can associate as many as 50 tags with an experiment. /// /// /// /// For more information, see Tagging /// Amazon Web Services resources. /// /// public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property Treatments. /// /// An array of structures that describe the configuration of each feature variation used /// in the experiment. /// /// [AWSProperty(Required=true, Min=0, Max=5)] public List Treatments { get { return this._treatments; } set { this._treatments = value; } } // Check to see if Treatments property is set internal bool IsSetTreatments() { return this._treatments != null && this._treatments.Count > 0; } } }