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.



9247
9248
9249
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9247

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)


9228
9229
9230
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9228

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)


9233
9234
9235
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9233

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)


9239
9240
9241
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9239

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)


9245
9246
9247
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9245

def warning_threshold
  @warning_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9252
9253
9254
9255
9256
9257
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9252

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