import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Retrieves the specified Experiment. */ export declare function getExperiment(args: GetExperimentArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetExperimentArgs { agentId: string; environmentId: string; experimentId: string; location: string; project?: string; } export interface GetExperimentResult { /** * Creation time of this experiment. */ readonly createTime: string; /** * The definition of the experiment. */ readonly definition: outputs.dialogflow.v3beta1.GoogleCloudDialogflowCxV3beta1ExperimentDefinitionResponse; /** * The human-readable description of the experiment. */ readonly description: string; /** * The human-readable name of the experiment (unique in an environment). Limit of 64 characters. */ readonly displayName: string; /** * End time of this experiment. */ readonly endTime: string; /** * Maximum number of days to run the experiment. 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. */ readonly experimentLength: string; /** * Last update time of this experiment. */ readonly lastUpdateTime: string; /** * The name of the experiment. Format: projects//locations//agents//environments//experiments/.. */ readonly name: string; /** * Inference result of the experiment. */ readonly result: outputs.dialogflow.v3beta1.GoogleCloudDialogflowCxV3beta1ExperimentResultResponse; /** * 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. */ readonly rolloutConfig: outputs.dialogflow.v3beta1.GoogleCloudDialogflowCxV3beta1RolloutConfigResponse; /** * The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED. */ readonly rolloutFailureReason: string; /** * State of the auto rollout process. */ readonly rolloutState: outputs.dialogflow.v3beta1.GoogleCloudDialogflowCxV3beta1RolloutStateResponse; /** * Start time of this experiment. */ readonly startTime: string; /** * The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE. */ readonly state: string; /** * The history of updates to the experiment variants. */ readonly variantsHistory: outputs.dialogflow.v3beta1.GoogleCloudDialogflowCxV3beta1VariantsHistoryResponse[]; } /** * Retrieves the specified Experiment. */ export declare function getExperimentOutput(args: GetExperimentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetExperimentOutputArgs { agentId: pulumi.Input; environmentId: pulumi.Input; experimentId: pulumi.Input; location: pulumi.Input; project?: pulumi.Input; }