Struct googapis::google::cloud::dialogflow::cx::v3::Experiment [−][src]
pub struct Experiment {Show 15 fields
pub name: String,
pub display_name: String,
pub description: String,
pub state: i32,
pub definition: Option<Definition>,
pub rollout_config: Option<RolloutConfig>,
pub rollout_state: Option<RolloutState>,
pub rollout_failure_reason: String,
pub result: Option<Result>,
pub create_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub last_update_time: Option<Timestamp>,
pub experiment_length: Option<Duration>,
pub variants_history: Vec<VariantsHistory>,
}
Expand description
Represents an experiment in an environment.
Fields
name: String
The name of the experiment.
Format: projects/
display_name: String
Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
description: String
The human-readable description of the experiment.
state: i32
The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.
definition: Option<Definition>
The definition of the experiment.
rollout_config: Option<RolloutConfig>
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.
rollout_state: Option<RolloutState>
State of the auto rollout process.
rollout_failure_reason: String
The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
result: Option<Result>
Inference result of the experiment.
create_time: Option<Timestamp>
Creation time of this experiment.
start_time: Option<Timestamp>
Start time of this experiment.
end_time: Option<Timestamp>
End time of this experiment.
last_update_time: Option<Timestamp>
Last update time of this experiment.
experiment_length: Option<Duration>
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.
variants_history: Vec<VariantsHistory>
The history of updates to the experiment variants.
Implementations
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Experiment
impl Send for Experiment
impl Sync for Experiment
impl Unpin for Experiment
impl UnwindSafe for Experiment
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more