public final class Experiment extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Analytics API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Experiment.ParentLink
Parent link for an experiment.
|
static class |
Experiment.Variations
Model definition for ExperimentVariations.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Experiment() |
| Modifier and Type | Method and Description |
|---|---|
Experiment |
clone() |
String |
getAccountId()
Account ID to which this experiment belongs.
|
DateTime |
getCreated()
Time the experiment was created.
|
String |
getDescription()
Notes about this experiment.
|
Boolean |
getEditableInGaUi()
If true, the end user will be able to edit the experiment via the Google Analytics user
interface.
|
DateTime |
getEndTime()
The ending time of the experiment (the time the status changed from RUNNING to ENDED).
|
Boolean |
getEqualWeighting()
Boolean specifying whether to distribute traffic evenly across all variations.
|
String |
getId()
Experiment ID.
|
String |
getInternalWebPropertyId()
Internal ID for the web property to which this experiment belongs.
|
String |
getKind()
Resource type for an Analytics experiment.
|
Integer |
getMinimumExperimentLengthInDays()
An integer number in [3, 90].
|
String |
getName()
Experiment name.
|
String |
getObjectiveMetric()
The metric that the experiment is optimizing.
|
String |
getOptimizationType()
Whether the objectiveMetric should be minimized or maximized.
|
Experiment.ParentLink |
getParentLink()
Parent link for an experiment.
|
String |
getProfileId()
View (Profile) ID to which this experiment belongs.
|
String |
getReasonExperimentEnded()
Why the experiment ended.
|
Boolean |
getRewriteVariationUrlsAsOriginal()
Boolean specifying whether variations URLS are rewritten to match those of the original.
|
String |
getSelfLink()
Link for this experiment.
|
String |
getServingFramework()
The framework used to serve the experiment variations and evaluate the results.
|
String |
getSnippet()
The snippet of code to include on the control page(s).
|
DateTime |
getStartTime()
The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING).
|
String |
getStatus()
Experiment status.
|
Double |
getTrafficCoverage()
A floating-point number in (0, 1].
|
DateTime |
getUpdated()
Time the experiment was last modified.
|
List<Experiment.Variations> |
getVariations()
Array of variations.
|
String |
getWebPropertyId()
Web property ID to which this experiment belongs.
|
Double |
getWinnerConfidenceLevel()
A floating-point number in (0, 1).
|
Boolean |
getWinnerFound()
Boolean specifying whether a winner has been found for this experiment.
|
Experiment |
set(String fieldName,
Object value) |
Experiment |
setAccountId(String accountId)
Account ID to which this experiment belongs.
|
Experiment |
setCreated(DateTime created)
Time the experiment was created.
|
Experiment |
setDescription(String description)
Notes about this experiment.
|
Experiment |
setEditableInGaUi(Boolean editableInGaUi)
If true, the end user will be able to edit the experiment via the Google Analytics user
interface.
|
Experiment |
setEndTime(DateTime endTime)
The ending time of the experiment (the time the status changed from RUNNING to ENDED).
|
Experiment |
setEqualWeighting(Boolean equalWeighting)
Boolean specifying whether to distribute traffic evenly across all variations.
|
Experiment |
setId(String id)
Experiment ID.
|
Experiment |
setInternalWebPropertyId(String internalWebPropertyId)
Internal ID for the web property to which this experiment belongs.
|
Experiment |
setKind(String kind)
Resource type for an Analytics experiment.
|
Experiment |
setMinimumExperimentLengthInDays(Integer minimumExperimentLengthInDays)
An integer number in [3, 90].
|
Experiment |
setName(String name)
Experiment name.
|
Experiment |
setObjectiveMetric(String objectiveMetric)
The metric that the experiment is optimizing.
|
Experiment |
setOptimizationType(String optimizationType)
Whether the objectiveMetric should be minimized or maximized.
|
Experiment |
setParentLink(Experiment.ParentLink parentLink)
Parent link for an experiment.
|
Experiment |
setProfileId(String profileId)
View (Profile) ID to which this experiment belongs.
|
Experiment |
setReasonExperimentEnded(String reasonExperimentEnded)
Why the experiment ended.
|
Experiment |
setRewriteVariationUrlsAsOriginal(Boolean rewriteVariationUrlsAsOriginal)
Boolean specifying whether variations URLS are rewritten to match those of the original.
|
Experiment |
setSelfLink(String selfLink)
Link for this experiment.
|
Experiment |
setServingFramework(String servingFramework)
The framework used to serve the experiment variations and evaluate the results.
|
Experiment |
setSnippet(String snippet)
The snippet of code to include on the control page(s).
|
Experiment |
setStartTime(DateTime startTime)
The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING).
|
Experiment |
setStatus(String status)
Experiment status.
|
Experiment |
setTrafficCoverage(Double trafficCoverage)
A floating-point number in (0, 1].
|
Experiment |
setUpdated(DateTime updated)
Time the experiment was last modified.
|
Experiment |
setVariations(List<Experiment.Variations> variations)
Array of variations.
|
Experiment |
setWebPropertyId(String webPropertyId)
Web property ID to which this experiment belongs.
|
Experiment |
setWinnerConfidenceLevel(Double winnerConfidenceLevel)
A floating-point number in (0, 1).
|
Experiment |
setWinnerFound(Boolean winnerFound)
Boolean specifying whether a winner has been found for this experiment.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAccountId()
null for nonepublic Experiment setAccountId(String accountId)
accountId - accountId or null for nonepublic DateTime getCreated()
null for nonepublic Experiment setCreated(DateTime created)
created - created or null for nonepublic String getDescription()
null for nonepublic Experiment setDescription(String description)
description - description or null for nonepublic Boolean getEditableInGaUi()
null for nonepublic Experiment setEditableInGaUi(Boolean editableInGaUi)
editableInGaUi - editableInGaUi or null for nonepublic DateTime getEndTime()
null for nonepublic Experiment setEndTime(DateTime endTime)
endTime - endTime or null for nonepublic Boolean getEqualWeighting()
null for nonepublic Experiment setEqualWeighting(Boolean equalWeighting)
equalWeighting - equalWeighting or null for nonepublic String getId()
null for nonepublic Experiment setId(String id)
id - id or null for nonepublic String getInternalWebPropertyId()
null for nonepublic Experiment setInternalWebPropertyId(String internalWebPropertyId)
internalWebPropertyId - internalWebPropertyId or null for nonepublic String getKind()
null for nonepublic Experiment setKind(String kind)
kind - kind or null for nonepublic Integer getMinimumExperimentLengthInDays()
null for nonepublic Experiment setMinimumExperimentLengthInDays(Integer minimumExperimentLengthInDays)
minimumExperimentLengthInDays - minimumExperimentLengthInDays or null for nonepublic String getName()
null for nonepublic Experiment setName(String name)
name - name or null for nonepublic String getObjectiveMetric()
null for nonepublic Experiment setObjectiveMetric(String objectiveMetric)
objectiveMetric - objectiveMetric or null for nonepublic String getOptimizationType()
null for nonepublic Experiment setOptimizationType(String optimizationType)
optimizationType - optimizationType or null for nonepublic Experiment.ParentLink getParentLink()
null for nonepublic Experiment setParentLink(Experiment.ParentLink parentLink)
parentLink - parentLink or null for nonepublic String getProfileId()
null for nonepublic Experiment setProfileId(String profileId)
profileId - profileId or null for nonepublic String getReasonExperimentEnded()
null for nonepublic Experiment setReasonExperimentEnded(String reasonExperimentEnded)
reasonExperimentEnded - reasonExperimentEnded or null for nonepublic Boolean getRewriteVariationUrlsAsOriginal()
null for nonepublic Experiment setRewriteVariationUrlsAsOriginal(Boolean rewriteVariationUrlsAsOriginal)
rewriteVariationUrlsAsOriginal - rewriteVariationUrlsAsOriginal or null for nonepublic String getSelfLink()
null for nonepublic Experiment setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getServingFramework()
null for nonepublic Experiment setServingFramework(String servingFramework)
servingFramework - servingFramework or null for nonepublic String getSnippet()
null for nonepublic Experiment setSnippet(String snippet)
snippet - snippet or null for nonepublic DateTime getStartTime()
null for nonepublic Experiment setStartTime(DateTime startTime)
startTime - startTime or null for nonepublic String getStatus()
null for nonepublic Experiment setStatus(String status)
status - status or null for nonepublic Double getTrafficCoverage()
null for nonepublic Experiment setTrafficCoverage(Double trafficCoverage)
trafficCoverage - trafficCoverage or null for nonepublic DateTime getUpdated()
null for nonepublic Experiment setUpdated(DateTime updated)
updated - updated or null for nonepublic List<Experiment.Variations> getVariations()
null for nonepublic Experiment setVariations(List<Experiment.Variations> variations)
variations - variations or null for nonepublic String getWebPropertyId()
null for nonepublic Experiment setWebPropertyId(String webPropertyId)
webPropertyId - webPropertyId or null for nonepublic Double getWinnerConfidenceLevel()
null for nonepublic Experiment setWinnerConfidenceLevel(Double winnerConfidenceLevel)
winnerConfidenceLevel - winnerConfidenceLevel or null for nonepublic Boolean getWinnerFound()
null for nonepublic Experiment setWinnerFound(Boolean winnerFound)
winnerFound - winnerFound or null for nonepublic Experiment set(String fieldName, Object value)
set in class GenericJsonpublic Experiment clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.