Skip to main content

experiments

Creates, updates, deletes, gets or lists an experiments resource.

Overview

Nameexperiments
TypeResource
Idgoogle.dialogflow.experiments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
createTimestring (google-datetime)
definitionobject (id: GoogleCloudDialogflowCxV3ExperimentDefinition)
descriptionstring
displayNamestring
endTimestring (google-datetime)
experimentLengthstring (google-duration)
lastUpdateTimestring (google-datetime)
resultobject (id: GoogleCloudDialogflowCxV3ExperimentResult)
rolloutConfigobject (id: GoogleCloudDialogflowCxV3RolloutConfig)
rolloutFailureReasonstring
rolloutStateobject (id: GoogleCloudDialogflowCxV3RolloutState)
startTimestring (google-datetime)
statestring (STATE_UNSPECIFIED, DRAFT, RUNNING, DONE, ROLLOUT_FAILED)
variantsHistoryarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_environments_experiments_getselectprojectsId, locationsId, agentsId, environmentsId, experimentsId
projects_locations_agents_environments_experiments_listselectprojectsId, locationsId, agentsId, environmentsIdpageToken, pageSize
projects_locations_agents_environments_experiments_createinsertprojectsId, locationsId, agentsId, environmentsId
projects_locations_agents_environments_experiments_patchupdateprojectsId, locationsId, agentsId, environmentsId, experimentsIdupdateMask
projects_locations_agents_environments_experiments_deletedeleteprojectsId, locationsId, agentsId, environmentsId, experimentsId
projects_locations_agents_environments_experiments_startexecprojectsId, locationsId, agentsId, environmentsId, experimentsId
projects_locations_agents_environments_experiments_stopexecprojectsId, locationsId, agentsId, environmentsId, experimentsId

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentsIdstring
environmentsIdstring
experimentsIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Successful response

SELECT
name,
createTime,
definition,
description,
displayName,
endTime,
experimentLength,
lastUpdateTime,
result,
rolloutConfig,
rolloutFailureReason,
rolloutState,
startTime,
state,
variantsHistory
FROM google.dialogflow.experiments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND environmentsId = '{{ environmentsId }}' -- required
AND experimentsId = '{{ experimentsId }}' -- required
;

INSERT examples

No description available.

INSERT INTO google.dialogflow.experiments (
data__result,
data__endTime,
data__experimentLength,
data__rolloutConfig,
data__name,
data__lastUpdateTime,
data__rolloutFailureReason,
data__createTime,
data__state,
data__startTime,
data__displayName,
data__description,
data__rolloutState,
data__definition,
data__variantsHistory,
projectsId,
locationsId,
agentsId,
environmentsId
)
SELECT
'{{ result }}',
'{{ endTime }}',
'{{ experimentLength }}',
'{{ rolloutConfig }}',
'{{ name }}',
'{{ lastUpdateTime }}',
'{{ rolloutFailureReason }}',
'{{ createTime }}',
'{{ state }}',
'{{ startTime }}',
'{{ displayName }}',
'{{ description }}',
'{{ rolloutState }}',
'{{ definition }}',
'{{ variantsHistory }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentsId }}',
'{{ environmentsId }}'
RETURNING
name,
createTime,
definition,
description,
displayName,
endTime,
experimentLength,
lastUpdateTime,
result,
rolloutConfig,
rolloutFailureReason,
rolloutState,
startTime,
state,
variantsHistory
;

UPDATE examples

No description available.

UPDATE google.dialogflow.experiments
SET
data__result = '{{ result }}',
data__endTime = '{{ endTime }}',
data__experimentLength = '{{ experimentLength }}',
data__rolloutConfig = '{{ rolloutConfig }}',
data__name = '{{ name }}',
data__lastUpdateTime = '{{ lastUpdateTime }}',
data__rolloutFailureReason = '{{ rolloutFailureReason }}',
data__createTime = '{{ createTime }}',
data__state = '{{ state }}',
data__startTime = '{{ startTime }}',
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__rolloutState = '{{ rolloutState }}',
data__definition = '{{ definition }}',
data__variantsHistory = '{{ variantsHistory }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND environmentsId = '{{ environmentsId }}' --required
AND experimentsId = '{{ experimentsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
definition,
description,
displayName,
endTime,
experimentLength,
lastUpdateTime,
result,
rolloutConfig,
rolloutFailureReason,
rolloutState,
startTime,
state,
variantsHistory;

DELETE examples

No description available.

DELETE FROM google.dialogflow.experiments
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND environmentsId = '{{ environmentsId }}' --required
AND experimentsId = '{{ experimentsId }}' --required
;

Lifecycle Methods

Successful response

EXEC google.dialogflow.experiments.projects_locations_agents_environments_experiments_start
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required,
@environmentsId='{{ environmentsId }}' --required,
@experimentsId='{{ experimentsId }}' --required
;