class Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Experiment

Represents an experiment in an environment.

Attributes

create_time[RW]

Creation time of this experiment. Corresponds to the JSON property `createTime` @return [String]

definition[RW]

Definition of the experiment. Corresponds to the JSON property `definition` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExperimentDefinition]

description[RW]

The human-readable description of the experiment. Corresponds to the JSON property `description` @return [String]

display_name[RW]

Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters. Corresponds to the JSON property `displayName` @return [String]

end_time[RW]

End time of this experiment. Corresponds to the JSON property `endTime` @return [String]

experiment_length[RW]

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. Corresponds to the JSON property `experimentLength` @return [String]

last_update_time[RW]

Last update time of this experiment. Corresponds to the JSON property `lastUpdateTime` @return [String]

name[RW]

The name of the experiment. Format: projects//locations//agents//environments// experiments/.. Corresponds to the JSON property `name` @return [String]

result[RW]

The inference result which includes an objective metric to optimize and the confidence interval. Corresponds to the JSON property `result` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExperimentResult]

rollout_config[RW]

The configuration for auto rollout. Corresponds to the JSON property `rolloutConfig` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RolloutConfig]

rollout_failure_reason[RW]

The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED. Corresponds to the JSON property `rolloutFailureReason` @return [String]

rollout_state[RW]

State of the auto-rollout process. Corresponds to the JSON property `rolloutState` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RolloutState]

start_time[RW]

Start time of this experiment. Corresponds to the JSON property `startTime` @return [String]

state[RW]

The current state of the experiment. Transition triggered by Experiments. StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments. CancelExperiment: DRAFT->DONE or RUNNING->DONE. Corresponds to the JSON property `state` @return [String]

variants_history[RW]

The history of updates to the experiment variants. Corresponds to the JSON property `variantsHistory` @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3VariantsHistory>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3/classes.rb, line 1106
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3/classes.rb, line 1111
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @definition = args[:definition] if args.key?(:definition)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @end_time = args[:end_time] if args.key?(:end_time)
  @experiment_length = args[:experiment_length] if args.key?(:experiment_length)
  @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
  @name = args[:name] if args.key?(:name)
  @result = args[:result] if args.key?(:result)
  @rollout_config = args[:rollout_config] if args.key?(:rollout_config)
  @rollout_failure_reason = args[:rollout_failure_reason] if args.key?(:rollout_failure_reason)
  @rollout_state = args[:rollout_state] if args.key?(:rollout_state)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @variants_history = args[:variants_history] if args.key?(:variants_history)
end