blob: edaf4c8b43919c1b9de3452c1985350945503f41 [file] [log] [blame]
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dialogflow_v3.html">Dialogflow API</a> . <a href="dialogflow_v3.projects.html">projects</a> . <a href="dialogflow_v3.projects.locations.html">locations</a> . <a href="dialogflow_v3.projects.locations.agents.html">agents</a> . <a href="dialogflow_v3.projects.locations.agents.environments.html">environments</a> . <a href="dialogflow_v3.projects.locations.agents.environments.experiments.html">experiments</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates an Experiment in the specified Environment.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes the specified Experiment.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Retrieves the specified Experiment.</p>
89<p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Returns the list of all experiments in the specified Environment.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Updates the specified Experiment.</p>
98<p class="toc_element">
99 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Starts the specified Experiment. This rpc only changes the state of experiment from PENDING to RUNNING.</p>
101<p class="toc_element">
102 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Stops the specified Experiment. This rpc only changes the state of experiment from RUNNING to DONE.</p>
104<h3>Method Details</h3>
105<div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108</div>
109
110<div class="method">
111 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
112 <pre>Creates an Experiment in the specified Environment.
113
114Args:
115 parent: string, Required. The Agent to create an Environment for. Format: `projects//locations//agents//environments/`. (required)
116 body: object, The request body.
117 The object takes the form of:
118
119{ # Represents an experiment in an environment.
120 &quot;createTime&quot;: &quot;A String&quot;, # Creation time of this experiment.
121 &quot;definition&quot;: { # Definition of the experiment. # The definition of the experiment.
122 &quot;condition&quot;: &quot;A String&quot;, # The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. &quot;query_input.language_code=en&quot; See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
123 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants of this experiment.
124 &quot;variants&quot;: [ # A list of flow version variants.
125 { # A single flow version with specified traffic allocation.
126 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
127 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
128 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
129 },
130 ],
131 },
132 },
133 &quot;description&quot;: &quot;A String&quot;, # The human-readable description of the experiment.
134 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
135 &quot;endTime&quot;: &quot;A String&quot;, # End time of this experiment.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700136 &quot;experimentLength&quot;: &quot;A String&quot;, # Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800137 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Last update time of this experiment.
138 &quot;name&quot;: &quot;A String&quot;, # The name of the experiment. Format: projects//locations//agents//environments//experiments/..
139 &quot;result&quot;: { # The inference result which includes an objective metric to optimize and the confidence interval. # Inference result of the experiment.
140 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The last time the experiment&#x27;s stats data was updated. Will have default value if stats have never been computed for this experiment.
141 &quot;versionMetrics&quot;: [ # Version variants and metrics.
142 { # Version variant and associated metrics.
143 &quot;metrics&quot;: [ # The metrics and corresponding confidence intervals in the inference result.
144 { # Metric and corresponding confidence intervals.
145 &quot;confidenceInterval&quot;: { # A confidence interval is a range of possible values for the experiment objective you are trying to measure. # The probability that the treatment is better than all other treatments in the experiment
146 &quot;confidenceLevel&quot;: 3.14, # The confidence level used to construct the interval, i.e. there is X% chance that the true value is within this interval.
147 &quot;lowerBound&quot;: 3.14, # Lower bound of the interval.
148 &quot;ratio&quot;: 3.14, # The percent change between an experiment metric&#x27;s value and the value for its control.
149 &quot;upperBound&quot;: 3.14, # Upper bound of the interval.
150 },
151 &quot;count&quot;: 3.14, # Count value of a metric.
152 &quot;countType&quot;: &quot;A String&quot;, # Count-based metric type. Only one of type or count_type is specified in each Metric.
153 &quot;ratio&quot;: 3.14, # Ratio value of a metric.
154 &quot;type&quot;: &quot;A String&quot;, # Ratio-based metric type. Only one of type or count_type is specified in each Metric.
155 },
156 ],
157 &quot;sessionCount&quot;: 42, # Number of sessions that were allocated to this version.
158 &quot;version&quot;: &quot;A String&quot;, # The name of the flow Version. Format: `projects//locations//agents//flows//versions/`.
159 },
160 ],
161 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700162 &quot;rolloutConfig&quot;: { # The configuration for auto rollout. # The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.
163 &quot;failureCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. &quot;containment_rate &lt; 10% OR average_turn_count &lt; 3&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
164 &quot;rolloutCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. &quot;containment_rate &gt; 60% AND callback_rate &lt; 20%&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
165 &quot;rolloutSteps&quot;: [ # Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.
166 { # A single rollout step with specified traffic allocation.
167 &quot;displayName&quot;: &quot;A String&quot;, # The name of the rollout step;
168 &quot;minDuration&quot;: &quot;A String&quot;, # The minimum time that this step should last. Should be longer than 1 hour. If not set, the default minimum duration for each step will be 1 hour.
169 &quot;trafficPercent&quot;: 42, # The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].
170 },
171 ],
172 },
173 &quot;rolloutFailureReason&quot;: &quot;A String&quot;, # The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
174 &quot;rolloutState&quot;: { # State of the auto-rollout process. # State of the auto rollout process.
175 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the current step.
176 &quot;step&quot;: &quot;A String&quot;, # Display name of the current auto rollout step.
177 &quot;stepIndex&quot;: 42, # Index of the current step in the auto rollout steps list.
178 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800179 &quot;startTime&quot;: &quot;A String&quot;, # Start time of this experiment.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700180 &quot;state&quot;: &quot;A String&quot;, # The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT-&gt;RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT-&gt;DONE or RUNNING-&gt;DONE.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800181 &quot;variantsHistory&quot;: [ # The history of updates to the experiment variants.
182 { # The history of variants update.
183 &quot;updateTime&quot;: &quot;A String&quot;, # Update time of the variants.
184 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants.
185 &quot;variants&quot;: [ # A list of flow version variants.
186 { # A single flow version with specified traffic allocation.
187 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
188 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
189 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
190 },
191 ],
192 },
193 },
194 ],
195}
196
197 x__xgafv: string, V1 error format.
198 Allowed values
199 1 - v1 error format
200 2 - v2 error format
201
202Returns:
203 An object of the form:
204
205 { # Represents an experiment in an environment.
206 &quot;createTime&quot;: &quot;A String&quot;, # Creation time of this experiment.
207 &quot;definition&quot;: { # Definition of the experiment. # The definition of the experiment.
208 &quot;condition&quot;: &quot;A String&quot;, # The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. &quot;query_input.language_code=en&quot; See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
209 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants of this experiment.
210 &quot;variants&quot;: [ # A list of flow version variants.
211 { # A single flow version with specified traffic allocation.
212 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
213 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
214 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
215 },
216 ],
217 },
218 },
219 &quot;description&quot;: &quot;A String&quot;, # The human-readable description of the experiment.
220 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
221 &quot;endTime&quot;: &quot;A String&quot;, # End time of this experiment.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700222 &quot;experimentLength&quot;: &quot;A String&quot;, # Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800223 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Last update time of this experiment.
224 &quot;name&quot;: &quot;A String&quot;, # The name of the experiment. Format: projects//locations//agents//environments//experiments/..
225 &quot;result&quot;: { # The inference result which includes an objective metric to optimize and the confidence interval. # Inference result of the experiment.
226 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The last time the experiment&#x27;s stats data was updated. Will have default value if stats have never been computed for this experiment.
227 &quot;versionMetrics&quot;: [ # Version variants and metrics.
228 { # Version variant and associated metrics.
229 &quot;metrics&quot;: [ # The metrics and corresponding confidence intervals in the inference result.
230 { # Metric and corresponding confidence intervals.
231 &quot;confidenceInterval&quot;: { # A confidence interval is a range of possible values for the experiment objective you are trying to measure. # The probability that the treatment is better than all other treatments in the experiment
232 &quot;confidenceLevel&quot;: 3.14, # The confidence level used to construct the interval, i.e. there is X% chance that the true value is within this interval.
233 &quot;lowerBound&quot;: 3.14, # Lower bound of the interval.
234 &quot;ratio&quot;: 3.14, # The percent change between an experiment metric&#x27;s value and the value for its control.
235 &quot;upperBound&quot;: 3.14, # Upper bound of the interval.
236 },
237 &quot;count&quot;: 3.14, # Count value of a metric.
238 &quot;countType&quot;: &quot;A String&quot;, # Count-based metric type. Only one of type or count_type is specified in each Metric.
239 &quot;ratio&quot;: 3.14, # Ratio value of a metric.
240 &quot;type&quot;: &quot;A String&quot;, # Ratio-based metric type. Only one of type or count_type is specified in each Metric.
241 },
242 ],
243 &quot;sessionCount&quot;: 42, # Number of sessions that were allocated to this version.
244 &quot;version&quot;: &quot;A String&quot;, # The name of the flow Version. Format: `projects//locations//agents//flows//versions/`.
245 },
246 ],
247 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700248 &quot;rolloutConfig&quot;: { # The configuration for auto rollout. # The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.
249 &quot;failureCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. &quot;containment_rate &lt; 10% OR average_turn_count &lt; 3&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
250 &quot;rolloutCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. &quot;containment_rate &gt; 60% AND callback_rate &lt; 20%&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
251 &quot;rolloutSteps&quot;: [ # Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.
252 { # A single rollout step with specified traffic allocation.
253 &quot;displayName&quot;: &quot;A String&quot;, # The name of the rollout step;
254 &quot;minDuration&quot;: &quot;A String&quot;, # The minimum time that this step should last. Should be longer than 1 hour. If not set, the default minimum duration for each step will be 1 hour.
255 &quot;trafficPercent&quot;: 42, # The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].
256 },
257 ],
258 },
259 &quot;rolloutFailureReason&quot;: &quot;A String&quot;, # The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
260 &quot;rolloutState&quot;: { # State of the auto-rollout process. # State of the auto rollout process.
261 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the current step.
262 &quot;step&quot;: &quot;A String&quot;, # Display name of the current auto rollout step.
263 &quot;stepIndex&quot;: 42, # Index of the current step in the auto rollout steps list.
264 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800265 &quot;startTime&quot;: &quot;A String&quot;, # Start time of this experiment.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700266 &quot;state&quot;: &quot;A String&quot;, # The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT-&gt;RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT-&gt;DONE or RUNNING-&gt;DONE.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800267 &quot;variantsHistory&quot;: [ # The history of updates to the experiment variants.
268 { # The history of variants update.
269 &quot;updateTime&quot;: &quot;A String&quot;, # Update time of the variants.
270 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants.
271 &quot;variants&quot;: [ # A list of flow version variants.
272 { # A single flow version with specified traffic allocation.
273 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
274 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
275 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
276 },
277 ],
278 },
279 },
280 ],
281}</pre>
282</div>
283
284<div class="method">
285 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
286 <pre>Deletes the specified Experiment.
287
288Args:
289 name: string, Required. The name of the Environment to delete. Format: `projects//locations//agents//environments//experiments/`. (required)
290 x__xgafv: string, V1 error format.
291 Allowed values
292 1 - v1 error format
293 2 - v2 error format
294
295Returns:
296 An object of the form:
297
298 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
299}</pre>
300</div>
301
302<div class="method">
303 <code class="details" id="get">get(name, x__xgafv=None)</code>
304 <pre>Retrieves the specified Experiment.
305
306Args:
307 name: string, Required. The name of the Environment. Format: `projects//locations//agents//environments//experiments/`. (required)
308 x__xgafv: string, V1 error format.
309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
312
313Returns:
314 An object of the form:
315
316 { # Represents an experiment in an environment.
317 &quot;createTime&quot;: &quot;A String&quot;, # Creation time of this experiment.
318 &quot;definition&quot;: { # Definition of the experiment. # The definition of the experiment.
319 &quot;condition&quot;: &quot;A String&quot;, # The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. &quot;query_input.language_code=en&quot; See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
320 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants of this experiment.
321 &quot;variants&quot;: [ # A list of flow version variants.
322 { # A single flow version with specified traffic allocation.
323 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
324 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
325 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
326 },
327 ],
328 },
329 },
330 &quot;description&quot;: &quot;A String&quot;, # The human-readable description of the experiment.
331 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
332 &quot;endTime&quot;: &quot;A String&quot;, # End time of this experiment.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700333 &quot;experimentLength&quot;: &quot;A String&quot;, # Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800334 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Last update time of this experiment.
335 &quot;name&quot;: &quot;A String&quot;, # The name of the experiment. Format: projects//locations//agents//environments//experiments/..
336 &quot;result&quot;: { # The inference result which includes an objective metric to optimize and the confidence interval. # Inference result of the experiment.
337 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The last time the experiment&#x27;s stats data was updated. Will have default value if stats have never been computed for this experiment.
338 &quot;versionMetrics&quot;: [ # Version variants and metrics.
339 { # Version variant and associated metrics.
340 &quot;metrics&quot;: [ # The metrics and corresponding confidence intervals in the inference result.
341 { # Metric and corresponding confidence intervals.
342 &quot;confidenceInterval&quot;: { # A confidence interval is a range of possible values for the experiment objective you are trying to measure. # The probability that the treatment is better than all other treatments in the experiment
343 &quot;confidenceLevel&quot;: 3.14, # The confidence level used to construct the interval, i.e. there is X% chance that the true value is within this interval.
344 &quot;lowerBound&quot;: 3.14, # Lower bound of the interval.
345 &quot;ratio&quot;: 3.14, # The percent change between an experiment metric&#x27;s value and the value for its control.
346 &quot;upperBound&quot;: 3.14, # Upper bound of the interval.
347 },
348 &quot;count&quot;: 3.14, # Count value of a metric.
349 &quot;countType&quot;: &quot;A String&quot;, # Count-based metric type. Only one of type or count_type is specified in each Metric.
350 &quot;ratio&quot;: 3.14, # Ratio value of a metric.
351 &quot;type&quot;: &quot;A String&quot;, # Ratio-based metric type. Only one of type or count_type is specified in each Metric.
352 },
353 ],
354 &quot;sessionCount&quot;: 42, # Number of sessions that were allocated to this version.
355 &quot;version&quot;: &quot;A String&quot;, # The name of the flow Version. Format: `projects//locations//agents//flows//versions/`.
356 },
357 ],
358 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700359 &quot;rolloutConfig&quot;: { # The configuration for auto rollout. # The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.
360 &quot;failureCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. &quot;containment_rate &lt; 10% OR average_turn_count &lt; 3&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
361 &quot;rolloutCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. &quot;containment_rate &gt; 60% AND callback_rate &lt; 20%&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
362 &quot;rolloutSteps&quot;: [ # Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.
363 { # A single rollout step with specified traffic allocation.
364 &quot;displayName&quot;: &quot;A String&quot;, # The name of the rollout step;
365 &quot;minDuration&quot;: &quot;A String&quot;, # The minimum time that this step should last. Should be longer than 1 hour. If not set, the default minimum duration for each step will be 1 hour.
366 &quot;trafficPercent&quot;: 42, # The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].
367 },
368 ],
369 },
370 &quot;rolloutFailureReason&quot;: &quot;A String&quot;, # The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
371 &quot;rolloutState&quot;: { # State of the auto-rollout process. # State of the auto rollout process.
372 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the current step.
373 &quot;step&quot;: &quot;A String&quot;, # Display name of the current auto rollout step.
374 &quot;stepIndex&quot;: 42, # Index of the current step in the auto rollout steps list.
375 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800376 &quot;startTime&quot;: &quot;A String&quot;, # Start time of this experiment.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700377 &quot;state&quot;: &quot;A String&quot;, # The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT-&gt;RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT-&gt;DONE or RUNNING-&gt;DONE.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800378 &quot;variantsHistory&quot;: [ # The history of updates to the experiment variants.
379 { # The history of variants update.
380 &quot;updateTime&quot;: &quot;A String&quot;, # Update time of the variants.
381 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants.
382 &quot;variants&quot;: [ # A list of flow version variants.
383 { # A single flow version with specified traffic allocation.
384 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
385 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
386 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
387 },
388 ],
389 },
390 },
391 ],
392}</pre>
393</div>
394
395<div class="method">
396 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
397 <pre>Returns the list of all experiments in the specified Environment.
398
399Args:
400 parent: string, Required. The Environment to list all environments for. Format: `projects//locations//agents//environments/`. (required)
401 pageSize: integer, The maximum number of items to return in a single page. By default 20 and at most 100.
402 pageToken: string, The next_page_token value returned from a previous list request.
403 x__xgafv: string, V1 error format.
404 Allowed values
405 1 - v1 error format
406 2 - v2 error format
407
408Returns:
409 An object of the form:
410
411 { # The response message for Experiments.ListExperiments.
412 &quot;experiments&quot;: [ # The list of experiments. There will be a maximum number of items returned based on the page_size field in the request. The list may in some cases be empty or contain fewer entries than page_size even if this isn&#x27;t the last page.
413 { # Represents an experiment in an environment.
414 &quot;createTime&quot;: &quot;A String&quot;, # Creation time of this experiment.
415 &quot;definition&quot;: { # Definition of the experiment. # The definition of the experiment.
416 &quot;condition&quot;: &quot;A String&quot;, # The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. &quot;query_input.language_code=en&quot; See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
417 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants of this experiment.
418 &quot;variants&quot;: [ # A list of flow version variants.
419 { # A single flow version with specified traffic allocation.
420 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
421 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
422 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
423 },
424 ],
425 },
426 },
427 &quot;description&quot;: &quot;A String&quot;, # The human-readable description of the experiment.
428 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
429 &quot;endTime&quot;: &quot;A String&quot;, # End time of this experiment.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700430 &quot;experimentLength&quot;: &quot;A String&quot;, # Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800431 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Last update time of this experiment.
432 &quot;name&quot;: &quot;A String&quot;, # The name of the experiment. Format: projects//locations//agents//environments//experiments/..
433 &quot;result&quot;: { # The inference result which includes an objective metric to optimize and the confidence interval. # Inference result of the experiment.
434 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The last time the experiment&#x27;s stats data was updated. Will have default value if stats have never been computed for this experiment.
435 &quot;versionMetrics&quot;: [ # Version variants and metrics.
436 { # Version variant and associated metrics.
437 &quot;metrics&quot;: [ # The metrics and corresponding confidence intervals in the inference result.
438 { # Metric and corresponding confidence intervals.
439 &quot;confidenceInterval&quot;: { # A confidence interval is a range of possible values for the experiment objective you are trying to measure. # The probability that the treatment is better than all other treatments in the experiment
440 &quot;confidenceLevel&quot;: 3.14, # The confidence level used to construct the interval, i.e. there is X% chance that the true value is within this interval.
441 &quot;lowerBound&quot;: 3.14, # Lower bound of the interval.
442 &quot;ratio&quot;: 3.14, # The percent change between an experiment metric&#x27;s value and the value for its control.
443 &quot;upperBound&quot;: 3.14, # Upper bound of the interval.
444 },
445 &quot;count&quot;: 3.14, # Count value of a metric.
446 &quot;countType&quot;: &quot;A String&quot;, # Count-based metric type. Only one of type or count_type is specified in each Metric.
447 &quot;ratio&quot;: 3.14, # Ratio value of a metric.
448 &quot;type&quot;: &quot;A String&quot;, # Ratio-based metric type. Only one of type or count_type is specified in each Metric.
449 },
450 ],
451 &quot;sessionCount&quot;: 42, # Number of sessions that were allocated to this version.
452 &quot;version&quot;: &quot;A String&quot;, # The name of the flow Version. Format: `projects//locations//agents//flows//versions/`.
453 },
454 ],
455 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700456 &quot;rolloutConfig&quot;: { # The configuration for auto rollout. # The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.
457 &quot;failureCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. &quot;containment_rate &lt; 10% OR average_turn_count &lt; 3&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
458 &quot;rolloutCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. &quot;containment_rate &gt; 60% AND callback_rate &lt; 20%&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
459 &quot;rolloutSteps&quot;: [ # Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.
460 { # A single rollout step with specified traffic allocation.
461 &quot;displayName&quot;: &quot;A String&quot;, # The name of the rollout step;
462 &quot;minDuration&quot;: &quot;A String&quot;, # The minimum time that this step should last. Should be longer than 1 hour. If not set, the default minimum duration for each step will be 1 hour.
463 &quot;trafficPercent&quot;: 42, # The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].
464 },
465 ],
466 },
467 &quot;rolloutFailureReason&quot;: &quot;A String&quot;, # The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
468 &quot;rolloutState&quot;: { # State of the auto-rollout process. # State of the auto rollout process.
469 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the current step.
470 &quot;step&quot;: &quot;A String&quot;, # Display name of the current auto rollout step.
471 &quot;stepIndex&quot;: 42, # Index of the current step in the auto rollout steps list.
472 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800473 &quot;startTime&quot;: &quot;A String&quot;, # Start time of this experiment.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700474 &quot;state&quot;: &quot;A String&quot;, # The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT-&gt;RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT-&gt;DONE or RUNNING-&gt;DONE.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800475 &quot;variantsHistory&quot;: [ # The history of updates to the experiment variants.
476 { # The history of variants update.
477 &quot;updateTime&quot;: &quot;A String&quot;, # Update time of the variants.
478 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants.
479 &quot;variants&quot;: [ # A list of flow version variants.
480 { # A single flow version with specified traffic allocation.
481 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
482 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
483 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
484 },
485 ],
486 },
487 },
488 ],
489 },
490 ],
491 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
492}</pre>
493</div>
494
495<div class="method">
496 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
497 <pre>Retrieves the next page of results.
498
499Args:
500 previous_request: The request for the previous page. (required)
501 previous_response: The response from the request for the previous page. (required)
502
503Returns:
504 A request object that you can call &#x27;execute()&#x27; on to request the next
505 page. Returns None if there are no more items in the collection.
506 </pre>
507</div>
508
509<div class="method">
510 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
511 <pre>Updates the specified Experiment.
512
513Args:
514 name: string, The name of the experiment. Format: projects//locations//agents//environments//experiments/.. (required)
515 body: object, The request body.
516 The object takes the form of:
517
518{ # Represents an experiment in an environment.
519 &quot;createTime&quot;: &quot;A String&quot;, # Creation time of this experiment.
520 &quot;definition&quot;: { # Definition of the experiment. # The definition of the experiment.
521 &quot;condition&quot;: &quot;A String&quot;, # The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. &quot;query_input.language_code=en&quot; See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
522 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants of this experiment.
523 &quot;variants&quot;: [ # A list of flow version variants.
524 { # A single flow version with specified traffic allocation.
525 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
526 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
527 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
528 },
529 ],
530 },
531 },
532 &quot;description&quot;: &quot;A String&quot;, # The human-readable description of the experiment.
533 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
534 &quot;endTime&quot;: &quot;A String&quot;, # End time of this experiment.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700535 &quot;experimentLength&quot;: &quot;A String&quot;, # Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800536 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Last update time of this experiment.
537 &quot;name&quot;: &quot;A String&quot;, # The name of the experiment. Format: projects//locations//agents//environments//experiments/..
538 &quot;result&quot;: { # The inference result which includes an objective metric to optimize and the confidence interval. # Inference result of the experiment.
539 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The last time the experiment&#x27;s stats data was updated. Will have default value if stats have never been computed for this experiment.
540 &quot;versionMetrics&quot;: [ # Version variants and metrics.
541 { # Version variant and associated metrics.
542 &quot;metrics&quot;: [ # The metrics and corresponding confidence intervals in the inference result.
543 { # Metric and corresponding confidence intervals.
544 &quot;confidenceInterval&quot;: { # A confidence interval is a range of possible values for the experiment objective you are trying to measure. # The probability that the treatment is better than all other treatments in the experiment
545 &quot;confidenceLevel&quot;: 3.14, # The confidence level used to construct the interval, i.e. there is X% chance that the true value is within this interval.
546 &quot;lowerBound&quot;: 3.14, # Lower bound of the interval.
547 &quot;ratio&quot;: 3.14, # The percent change between an experiment metric&#x27;s value and the value for its control.
548 &quot;upperBound&quot;: 3.14, # Upper bound of the interval.
549 },
550 &quot;count&quot;: 3.14, # Count value of a metric.
551 &quot;countType&quot;: &quot;A String&quot;, # Count-based metric type. Only one of type or count_type is specified in each Metric.
552 &quot;ratio&quot;: 3.14, # Ratio value of a metric.
553 &quot;type&quot;: &quot;A String&quot;, # Ratio-based metric type. Only one of type or count_type is specified in each Metric.
554 },
555 ],
556 &quot;sessionCount&quot;: 42, # Number of sessions that were allocated to this version.
557 &quot;version&quot;: &quot;A String&quot;, # The name of the flow Version. Format: `projects//locations//agents//flows//versions/`.
558 },
559 ],
560 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700561 &quot;rolloutConfig&quot;: { # The configuration for auto rollout. # The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.
562 &quot;failureCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. &quot;containment_rate &lt; 10% OR average_turn_count &lt; 3&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
563 &quot;rolloutCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. &quot;containment_rate &gt; 60% AND callback_rate &lt; 20%&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
564 &quot;rolloutSteps&quot;: [ # Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.
565 { # A single rollout step with specified traffic allocation.
566 &quot;displayName&quot;: &quot;A String&quot;, # The name of the rollout step;
567 &quot;minDuration&quot;: &quot;A String&quot;, # The minimum time that this step should last. Should be longer than 1 hour. If not set, the default minimum duration for each step will be 1 hour.
568 &quot;trafficPercent&quot;: 42, # The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].
569 },
570 ],
571 },
572 &quot;rolloutFailureReason&quot;: &quot;A String&quot;, # The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
573 &quot;rolloutState&quot;: { # State of the auto-rollout process. # State of the auto rollout process.
574 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the current step.
575 &quot;step&quot;: &quot;A String&quot;, # Display name of the current auto rollout step.
576 &quot;stepIndex&quot;: 42, # Index of the current step in the auto rollout steps list.
577 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800578 &quot;startTime&quot;: &quot;A String&quot;, # Start time of this experiment.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700579 &quot;state&quot;: &quot;A String&quot;, # The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT-&gt;RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT-&gt;DONE or RUNNING-&gt;DONE.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800580 &quot;variantsHistory&quot;: [ # The history of updates to the experiment variants.
581 { # The history of variants update.
582 &quot;updateTime&quot;: &quot;A String&quot;, # Update time of the variants.
583 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants.
584 &quot;variants&quot;: [ # A list of flow version variants.
585 { # A single flow version with specified traffic allocation.
586 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
587 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
588 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
589 },
590 ],
591 },
592 },
593 ],
594}
595
596 updateMask: string, Required. The mask to control which fields get updated.
597 x__xgafv: string, V1 error format.
598 Allowed values
599 1 - v1 error format
600 2 - v2 error format
601
602Returns:
603 An object of the form:
604
605 { # Represents an experiment in an environment.
606 &quot;createTime&quot;: &quot;A String&quot;, # Creation time of this experiment.
607 &quot;definition&quot;: { # Definition of the experiment. # The definition of the experiment.
608 &quot;condition&quot;: &quot;A String&quot;, # The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. &quot;query_input.language_code=en&quot; See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
609 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants of this experiment.
610 &quot;variants&quot;: [ # A list of flow version variants.
611 { # A single flow version with specified traffic allocation.
612 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
613 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
614 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
615 },
616 ],
617 },
618 },
619 &quot;description&quot;: &quot;A String&quot;, # The human-readable description of the experiment.
620 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
621 &quot;endTime&quot;: &quot;A String&quot;, # End time of this experiment.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700622 &quot;experimentLength&quot;: &quot;A String&quot;, # Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800623 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Last update time of this experiment.
624 &quot;name&quot;: &quot;A String&quot;, # The name of the experiment. Format: projects//locations//agents//environments//experiments/..
625 &quot;result&quot;: { # The inference result which includes an objective metric to optimize and the confidence interval. # Inference result of the experiment.
626 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The last time the experiment&#x27;s stats data was updated. Will have default value if stats have never been computed for this experiment.
627 &quot;versionMetrics&quot;: [ # Version variants and metrics.
628 { # Version variant and associated metrics.
629 &quot;metrics&quot;: [ # The metrics and corresponding confidence intervals in the inference result.
630 { # Metric and corresponding confidence intervals.
631 &quot;confidenceInterval&quot;: { # A confidence interval is a range of possible values for the experiment objective you are trying to measure. # The probability that the treatment is better than all other treatments in the experiment
632 &quot;confidenceLevel&quot;: 3.14, # The confidence level used to construct the interval, i.e. there is X% chance that the true value is within this interval.
633 &quot;lowerBound&quot;: 3.14, # Lower bound of the interval.
634 &quot;ratio&quot;: 3.14, # The percent change between an experiment metric&#x27;s value and the value for its control.
635 &quot;upperBound&quot;: 3.14, # Upper bound of the interval.
636 },
637 &quot;count&quot;: 3.14, # Count value of a metric.
638 &quot;countType&quot;: &quot;A String&quot;, # Count-based metric type. Only one of type or count_type is specified in each Metric.
639 &quot;ratio&quot;: 3.14, # Ratio value of a metric.
640 &quot;type&quot;: &quot;A String&quot;, # Ratio-based metric type. Only one of type or count_type is specified in each Metric.
641 },
642 ],
643 &quot;sessionCount&quot;: 42, # Number of sessions that were allocated to this version.
644 &quot;version&quot;: &quot;A String&quot;, # The name of the flow Version. Format: `projects//locations//agents//flows//versions/`.
645 },
646 ],
647 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700648 &quot;rolloutConfig&quot;: { # The configuration for auto rollout. # The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.
649 &quot;failureCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. &quot;containment_rate &lt; 10% OR average_turn_count &lt; 3&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
650 &quot;rolloutCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. &quot;containment_rate &gt; 60% AND callback_rate &lt; 20%&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
651 &quot;rolloutSteps&quot;: [ # Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.
652 { # A single rollout step with specified traffic allocation.
653 &quot;displayName&quot;: &quot;A String&quot;, # The name of the rollout step;
654 &quot;minDuration&quot;: &quot;A String&quot;, # The minimum time that this step should last. Should be longer than 1 hour. If not set, the default minimum duration for each step will be 1 hour.
655 &quot;trafficPercent&quot;: 42, # The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].
656 },
657 ],
658 },
659 &quot;rolloutFailureReason&quot;: &quot;A String&quot;, # The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
660 &quot;rolloutState&quot;: { # State of the auto-rollout process. # State of the auto rollout process.
661 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the current step.
662 &quot;step&quot;: &quot;A String&quot;, # Display name of the current auto rollout step.
663 &quot;stepIndex&quot;: 42, # Index of the current step in the auto rollout steps list.
664 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800665 &quot;startTime&quot;: &quot;A String&quot;, # Start time of this experiment.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700666 &quot;state&quot;: &quot;A String&quot;, # The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT-&gt;RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT-&gt;DONE or RUNNING-&gt;DONE.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800667 &quot;variantsHistory&quot;: [ # The history of updates to the experiment variants.
668 { # The history of variants update.
669 &quot;updateTime&quot;: &quot;A String&quot;, # Update time of the variants.
670 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants.
671 &quot;variants&quot;: [ # A list of flow version variants.
672 { # A single flow version with specified traffic allocation.
673 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
674 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
675 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
676 },
677 ],
678 },
679 },
680 ],
681}</pre>
682</div>
683
684<div class="method">
685 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
686 <pre>Starts the specified Experiment. This rpc only changes the state of experiment from PENDING to RUNNING.
687
688Args:
689 name: string, Required. Resource name of the experiment to start. Format: `projects//locations//agents//environments//experiments/`. (required)
690 body: object, The request body.
691 The object takes the form of:
692
693{ # The request message for Experiments.StartExperiment.
694}
695
696 x__xgafv: string, V1 error format.
697 Allowed values
698 1 - v1 error format
699 2 - v2 error format
700
701Returns:
702 An object of the form:
703
704 { # Represents an experiment in an environment.
705 &quot;createTime&quot;: &quot;A String&quot;, # Creation time of this experiment.
706 &quot;definition&quot;: { # Definition of the experiment. # The definition of the experiment.
707 &quot;condition&quot;: &quot;A String&quot;, # The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. &quot;query_input.language_code=en&quot; See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
708 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants of this experiment.
709 &quot;variants&quot;: [ # A list of flow version variants.
710 { # A single flow version with specified traffic allocation.
711 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
712 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
713 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
714 },
715 ],
716 },
717 },
718 &quot;description&quot;: &quot;A String&quot;, # The human-readable description of the experiment.
719 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
720 &quot;endTime&quot;: &quot;A String&quot;, # End time of this experiment.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700721 &quot;experimentLength&quot;: &quot;A String&quot;, # Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800722 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Last update time of this experiment.
723 &quot;name&quot;: &quot;A String&quot;, # The name of the experiment. Format: projects//locations//agents//environments//experiments/..
724 &quot;result&quot;: { # The inference result which includes an objective metric to optimize and the confidence interval. # Inference result of the experiment.
725 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The last time the experiment&#x27;s stats data was updated. Will have default value if stats have never been computed for this experiment.
726 &quot;versionMetrics&quot;: [ # Version variants and metrics.
727 { # Version variant and associated metrics.
728 &quot;metrics&quot;: [ # The metrics and corresponding confidence intervals in the inference result.
729 { # Metric and corresponding confidence intervals.
730 &quot;confidenceInterval&quot;: { # A confidence interval is a range of possible values for the experiment objective you are trying to measure. # The probability that the treatment is better than all other treatments in the experiment
731 &quot;confidenceLevel&quot;: 3.14, # The confidence level used to construct the interval, i.e. there is X% chance that the true value is within this interval.
732 &quot;lowerBound&quot;: 3.14, # Lower bound of the interval.
733 &quot;ratio&quot;: 3.14, # The percent change between an experiment metric&#x27;s value and the value for its control.
734 &quot;upperBound&quot;: 3.14, # Upper bound of the interval.
735 },
736 &quot;count&quot;: 3.14, # Count value of a metric.
737 &quot;countType&quot;: &quot;A String&quot;, # Count-based metric type. Only one of type or count_type is specified in each Metric.
738 &quot;ratio&quot;: 3.14, # Ratio value of a metric.
739 &quot;type&quot;: &quot;A String&quot;, # Ratio-based metric type. Only one of type or count_type is specified in each Metric.
740 },
741 ],
742 &quot;sessionCount&quot;: 42, # Number of sessions that were allocated to this version.
743 &quot;version&quot;: &quot;A String&quot;, # The name of the flow Version. Format: `projects//locations//agents//flows//versions/`.
744 },
745 ],
746 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700747 &quot;rolloutConfig&quot;: { # The configuration for auto rollout. # The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.
748 &quot;failureCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. &quot;containment_rate &lt; 10% OR average_turn_count &lt; 3&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
749 &quot;rolloutCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. &quot;containment_rate &gt; 60% AND callback_rate &lt; 20%&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
750 &quot;rolloutSteps&quot;: [ # Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.
751 { # A single rollout step with specified traffic allocation.
752 &quot;displayName&quot;: &quot;A String&quot;, # The name of the rollout step;
753 &quot;minDuration&quot;: &quot;A String&quot;, # The minimum time that this step should last. Should be longer than 1 hour. If not set, the default minimum duration for each step will be 1 hour.
754 &quot;trafficPercent&quot;: 42, # The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].
755 },
756 ],
757 },
758 &quot;rolloutFailureReason&quot;: &quot;A String&quot;, # The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
759 &quot;rolloutState&quot;: { # State of the auto-rollout process. # State of the auto rollout process.
760 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the current step.
761 &quot;step&quot;: &quot;A String&quot;, # Display name of the current auto rollout step.
762 &quot;stepIndex&quot;: 42, # Index of the current step in the auto rollout steps list.
763 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800764 &quot;startTime&quot;: &quot;A String&quot;, # Start time of this experiment.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700765 &quot;state&quot;: &quot;A String&quot;, # The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT-&gt;RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT-&gt;DONE or RUNNING-&gt;DONE.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800766 &quot;variantsHistory&quot;: [ # The history of updates to the experiment variants.
767 { # The history of variants update.
768 &quot;updateTime&quot;: &quot;A String&quot;, # Update time of the variants.
769 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants.
770 &quot;variants&quot;: [ # A list of flow version variants.
771 { # A single flow version with specified traffic allocation.
772 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
773 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
774 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
775 },
776 ],
777 },
778 },
779 ],
780}</pre>
781</div>
782
783<div class="method">
784 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
785 <pre>Stops the specified Experiment. This rpc only changes the state of experiment from RUNNING to DONE.
786
787Args:
788 name: string, Required. Resource name of the experiment to stop. Format: `projects//locations//agents//environments//experiments/`. (required)
789 body: object, The request body.
790 The object takes the form of:
791
792{ # The request message for Experiments.StopExperiment.
793}
794
795 x__xgafv: string, V1 error format.
796 Allowed values
797 1 - v1 error format
798 2 - v2 error format
799
800Returns:
801 An object of the form:
802
803 { # Represents an experiment in an environment.
804 &quot;createTime&quot;: &quot;A String&quot;, # Creation time of this experiment.
805 &quot;definition&quot;: { # Definition of the experiment. # The definition of the experiment.
806 &quot;condition&quot;: &quot;A String&quot;, # The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. &quot;query_input.language_code=en&quot; See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
807 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants of this experiment.
808 &quot;variants&quot;: [ # A list of flow version variants.
809 { # A single flow version with specified traffic allocation.
810 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
811 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
812 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
813 },
814 ],
815 },
816 },
817 &quot;description&quot;: &quot;A String&quot;, # The human-readable description of the experiment.
818 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
819 &quot;endTime&quot;: &quot;A String&quot;, # End time of this experiment.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700820 &quot;experimentLength&quot;: &quot;A String&quot;, # Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800821 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Last update time of this experiment.
822 &quot;name&quot;: &quot;A String&quot;, # The name of the experiment. Format: projects//locations//agents//environments//experiments/..
823 &quot;result&quot;: { # The inference result which includes an objective metric to optimize and the confidence interval. # Inference result of the experiment.
824 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The last time the experiment&#x27;s stats data was updated. Will have default value if stats have never been computed for this experiment.
825 &quot;versionMetrics&quot;: [ # Version variants and metrics.
826 { # Version variant and associated metrics.
827 &quot;metrics&quot;: [ # The metrics and corresponding confidence intervals in the inference result.
828 { # Metric and corresponding confidence intervals.
829 &quot;confidenceInterval&quot;: { # A confidence interval is a range of possible values for the experiment objective you are trying to measure. # The probability that the treatment is better than all other treatments in the experiment
830 &quot;confidenceLevel&quot;: 3.14, # The confidence level used to construct the interval, i.e. there is X% chance that the true value is within this interval.
831 &quot;lowerBound&quot;: 3.14, # Lower bound of the interval.
832 &quot;ratio&quot;: 3.14, # The percent change between an experiment metric&#x27;s value and the value for its control.
833 &quot;upperBound&quot;: 3.14, # Upper bound of the interval.
834 },
835 &quot;count&quot;: 3.14, # Count value of a metric.
836 &quot;countType&quot;: &quot;A String&quot;, # Count-based metric type. Only one of type or count_type is specified in each Metric.
837 &quot;ratio&quot;: 3.14, # Ratio value of a metric.
838 &quot;type&quot;: &quot;A String&quot;, # Ratio-based metric type. Only one of type or count_type is specified in each Metric.
839 },
840 ],
841 &quot;sessionCount&quot;: 42, # Number of sessions that were allocated to this version.
842 &quot;version&quot;: &quot;A String&quot;, # The name of the flow Version. Format: `projects//locations//agents//flows//versions/`.
843 },
844 ],
845 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700846 &quot;rolloutConfig&quot;: { # The configuration for auto rollout. # The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.
847 &quot;failureCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. &quot;containment_rate &lt; 10% OR average_turn_count &lt; 3&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
848 &quot;rolloutCondition&quot;: &quot;A String&quot;, # The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. &quot;containment_rate &gt; 60% AND callback_rate &lt; 20%&quot;. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
849 &quot;rolloutSteps&quot;: [ # Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.
850 { # A single rollout step with specified traffic allocation.
851 &quot;displayName&quot;: &quot;A String&quot;, # The name of the rollout step;
852 &quot;minDuration&quot;: &quot;A String&quot;, # The minimum time that this step should last. Should be longer than 1 hour. If not set, the default minimum duration for each step will be 1 hour.
853 &quot;trafficPercent&quot;: 42, # The percentage of traffic allocated to the flow version of this rollout step. (0%, 100%].
854 },
855 ],
856 },
857 &quot;rolloutFailureReason&quot;: &quot;A String&quot;, # The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
858 &quot;rolloutState&quot;: { # State of the auto-rollout process. # State of the auto rollout process.
859 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the current step.
860 &quot;step&quot;: &quot;A String&quot;, # Display name of the current auto rollout step.
861 &quot;stepIndex&quot;: 42, # Index of the current step in the auto rollout steps list.
862 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800863 &quot;startTime&quot;: &quot;A String&quot;, # Start time of this experiment.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700864 &quot;state&quot;: &quot;A String&quot;, # The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT-&gt;RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT-&gt;DONE or RUNNING-&gt;DONE.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800865 &quot;variantsHistory&quot;: [ # The history of updates to the experiment variants.
866 { # The history of variants update.
867 &quot;updateTime&quot;: &quot;A String&quot;, # Update time of the variants.
868 &quot;versionVariants&quot;: { # A list of flow version variants. # The flow versions as the variants.
869 &quot;variants&quot;: [ # A list of flow version variants.
870 { # A single flow version with specified traffic allocation.
871 &quot;isControlGroup&quot;: True or False, # Whether the variant is for the control group.
872 &quot;trafficAllocation&quot;: 3.14, # Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0.
873 &quot;version&quot;: &quot;A String&quot;, # The name of the flow version. Format: `projects//locations//agents//flows//versions/`.
874 },
875 ],
876 },
877 },
878 ],
879}</pre>
880</div>
881
882</body></html>