class Google::Apis::AnalyticsV3::Experiment::Variation
Attributes
The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED. Corresponds to the JSON property `name` @return [String]
Status of the variation. Possible values: “ACTIVE”, “INACTIVE”. INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED. Corresponds to the JSON property `status` @return [String]
The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED. Corresponds to the JSON property `url` @return [String]
Weight that this variation should receive. Only present if the experiment is running. This field is read-only. Corresponds to the JSON property `weight` @return [Float]
True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. Corresponds to the JSON property `won` @return [Boolean]
True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. Corresponds to the JSON property `won` @return [Boolean]
Public Class Methods
# File lib/google/apis/analytics_v3/classes.rb, line 1842 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analytics_v3/classes.rb, line 1847 def update!(**args) @name = args[:name] if args.key?(:name) @status = args[:status] if args.key?(:status) @url = args[:url] if args.key?(:url) @weight = args[:weight] if args.key?(:weight) @won = args[:won] if args.key?(:won) end