Class: Aws::CloudWatchOmni::Types::AlertCondition
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchOmni::Types::AlertCondition
- Defined in:
- gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb
Overview
The condition that determines when the alert fires.
On UpdateAlert a supplied condition is replaced whole, not merged: an omitted warningThreshold or criticalThreshold removes that tier, and an omitted thresholdField clears it. A condition must keep at least one tier. thresholdMode and comparator are optional at the Smithy level (so a single-tier condition is expressible) but are required whenever a threshold is present; enforced by the service-side validator.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#comparator ⇒ String
The comparison operator applied to the threshold.
-
#critical_threshold ⇒ Float
The value at which the alert enters the CRITICAL state.
-
#threshold_field ⇒ String
The field the threshold is evaluated against.
-
#threshold_mode ⇒ String
How the threshold is applied to query results.
-
#warning_threshold ⇒ Float
The value at which the alert enters the WARNING state.
Instance Attribute Details
#comparator ⇒ String
The comparison operator applied to the threshold.
415 416 417 418 419 420 421 422 423 |
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 415 class AlertCondition < Struct.new( :threshold_mode, :threshold_field, :comparator, :warning_threshold, :critical_threshold) SENSITIVE = [] include Aws::Structure end |
#critical_threshold ⇒ Float
The value at which the alert enters the CRITICAL state.
415 416 417 418 419 420 421 422 423 |
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 415 class AlertCondition < Struct.new( :threshold_mode, :threshold_field, :comparator, :warning_threshold, :critical_threshold) SENSITIVE = [] include Aws::Structure end |
#threshold_field ⇒ String
The field the threshold is evaluated against.
415 416 417 418 419 420 421 422 423 |
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 415 class AlertCondition < Struct.new( :threshold_mode, :threshold_field, :comparator, :warning_threshold, :critical_threshold) SENSITIVE = [] include Aws::Structure end |
#threshold_mode ⇒ String
How the threshold is applied to query results.
415 416 417 418 419 420 421 422 423 |
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 415 class AlertCondition < Struct.new( :threshold_mode, :threshold_field, :comparator, :warning_threshold, :critical_threshold) SENSITIVE = [] include Aws::Structure end |
#warning_threshold ⇒ Float
The value at which the alert enters the WARNING state.
415 416 417 418 419 420 421 422 423 |
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 415 class AlertCondition < Struct.new( :threshold_mode, :threshold_field, :comparator, :warning_threshold, :critical_threshold) SENSITIVE = [] include Aws::Structure end |