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.



10277
10278
10279
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10277

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

Instance Attribute Details

#blocking_thresholdFloat

Threshold to trigger a blocking failure. If not met, the requirement will evaluate as a FAILURE. Corresponds to the JSON property blockingThreshold

Returns:

  • (Float)


10258
10259
10260
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10258

def blocking_threshold
  @blocking_threshold
end

#descriptionString

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

Returns:

  • (String)


10263
10264
10265
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10263

def description
  @description
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)


10269
10270
10271
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10269

def variable_id
  @variable_id
end

#warning_thresholdFloat

Threshold to trigger a warning. If not met, the requirement will evaluate as a WARNING. Corresponds to the JSON property warningThreshold

Returns:

  • (Float)


10275
10276
10277
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10275

def warning_threshold
  @warning_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10282
10283
10284
10285
10286
10287
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10282

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