Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding
- 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
-
#blocking_threshold ⇒ Float
Threshold to trigger a blocking failure.
-
#description ⇒ String
Human readable description of the corresponding threshold and sub-requirement.
-
#variable_id ⇒ String
The variable id to be referenced in
condition
. -
#warning_threshold ⇒ Float
Threshold to trigger a warning.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_threshold ⇒ Float
Threshold to trigger a blocking failure. If not met, the requirement will
evaluate as a FAILURE
.
Corresponds to the JSON property blockingThreshold
10258 10259 10260 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10258 def blocking_threshold @blocking_threshold end |
#description ⇒ String
Human readable description of the corresponding threshold and sub-requirement.
Corresponds to the JSON property description
10263 10264 10265 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10263 def description @description end |
#variable_id ⇒ String
The variable id to be referenced in condition
. Must be unique across all
metric_bindings
and threshold_bindings
.
Corresponds to the JSON property variableId
10269 10270 10271 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10269 def variable_id @variable_id end |
#warning_threshold ⇒ Float
Threshold to trigger a warning. If not met, the requirement will evaluate as a
WARNING
.
Corresponds to the JSON property warningThreshold
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 |