Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RolloutConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Overview

The configuration for auto rollout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3RolloutConfig

Returns a new instance of GoogleCloudDialogflowCxV3RolloutConfig.



6244
6245
6246
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6244

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#failure_conditionString

The conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. "containment_rate < 10% OR average_turn_count < 3". See the conditions reference. Corresponds to the JSON property failureCondition

Returns:

  • (String)


6227
6228
6229
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6227

def failure_condition
  @failure_condition
end

#rollout_conditionString

The conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. "containment_rate > 60% AND callback_rate < 20%". See the conditions reference. Corresponds to the JSON property rolloutCondition

Returns:

  • (String)


6236
6237
6238
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6236

def rollout_condition
  @rollout_condition
end

#rollout_stepsArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RolloutConfigRolloutStep>

Steps to roll out a flow version. Steps should be sorted by percentage in ascending order. Corresponds to the JSON property rolloutSteps



6242
6243
6244
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6242

def rollout_steps
  @rollout_steps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6249
6250
6251
6252
6253
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6249

def update!(**args)
  @failure_condition = args[:failure_condition] if args.key?(:failure_condition)
  @rollout_condition = args[:rollout_condition] if args.key?(:rollout_condition)
  @rollout_steps = args[:rollout_steps] if args.key?(:rollout_steps)
end