Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding

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

Overview

Specifies a multi-level threshold to apply to apply to a metric_bindings in the condition CEL expression.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding

Returns a new instance of GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding.



14232
14233
14234
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14232

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

Instance Attribute Details

#descriptionString

Human readable description of the corresponding threshold and sub-requirement. Corresponds to the JSON property description

Returns:

  • (String)


14218
14219
14220
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14218

def description
  @description
end

#threshold_valuesArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue>

The values of the threshold. The values should be ordered from the most strict to the least strict. Corresponds to the JSON property thresholdValues



14224
14225
14226
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14224

def threshold_values
  @threshold_values
end

#variable_idString

The variable id to be referenced in condition. Must be unique across all metric_bindings and threshold_bindings. Corresponds to the JSON property variableId

Returns:

  • (String)


14230
14231
14232
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14230

def variable_id
  @variable_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14237
14238
14239
14240
14241
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14237

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @threshold_values = args[:threshold_values] if args.key?(:threshold_values)
  @variable_id = args[:variable_id] if args.key?(:variable_id)
end