import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates an Experiment in the specified Environment. */ export declare class Experiment extends pulumi.CustomResource { /** * Get an existing Experiment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Experiment; /** * Returns true if the given object is an instance of Experiment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Experiment; readonly agentId: pulumi.Output; /** * Creation time of this experiment. */ readonly createTime: pulumi.Output; /** * The definition of the experiment. */ readonly definition: pulumi.Output; /** * The human-readable description of the experiment. */ readonly description: pulumi.Output; /** * The human-readable name of the experiment (unique in an environment). Limit of 64 characters. */ readonly displayName: pulumi.Output; /** * End time of this experiment. */ readonly endTime: pulumi.Output; readonly environmentId: pulumi.Output; /** * 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: pulumi.Output; /** * Last update time of this experiment. */ readonly lastUpdateTime: pulumi.Output; readonly location: pulumi.Output; /** * The name of the experiment. Format: projects//locations//agents//environments//experiments/.. */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * Inference result of the experiment. */ readonly result: pulumi.Output; /** * 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: pulumi.Output; /** * The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED. */ readonly rolloutFailureReason: pulumi.Output; /** * State of the auto rollout process. */ readonly rolloutState: pulumi.Output; /** * Start time of this experiment. */ readonly startTime: pulumi.Output; /** * 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: pulumi.Output; /** * The history of updates to the experiment variants. */ readonly variantsHistory: pulumi.Output; /** * Create a Experiment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ExperimentArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Experiment resource. */ export interface ExperimentArgs { agentId: pulumi.Input; /** * Creation time of this experiment. */ createTime?: pulumi.Input; /** * The definition of the experiment. */ definition?: pulumi.Input; /** * The human-readable description of the experiment. */ description?: pulumi.Input; /** * The human-readable name of the experiment (unique in an environment). Limit of 64 characters. */ displayName: pulumi.Input; /** * End time of this experiment. */ endTime?: pulumi.Input; environmentId: pulumi.Input; /** * 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. */ experimentLength?: pulumi.Input; /** * Last update time of this experiment. */ lastUpdateTime?: pulumi.Input; location?: pulumi.Input; /** * The name of the experiment. Format: projects//locations//agents//environments//experiments/.. */ name?: pulumi.Input; project?: pulumi.Input; /** * Inference result of the experiment. */ result?: pulumi.Input; /** * 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. */ rolloutConfig?: pulumi.Input; /** * The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED. */ rolloutFailureReason?: pulumi.Input; /** * State of the auto rollout process. */ rolloutState?: pulumi.Input; /** * Start time of this experiment. */ startTime?: pulumi.Input; /** * The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE. */ state?: pulumi.Input; /** * The history of updates to the experiment variants. */ variantsHistory?: pulumi.Input[]>; }