Class: Aws::CloudWatchOmni::Types::AlertCondition

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#comparatorString

The comparison operator applied to the threshold.

Returns:

  • (String)


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_thresholdFloat

The value at which the alert enters the CRITICAL state.

Returns:

  • (Float)


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_fieldString

The field the threshold is evaluated against.

Returns:

  • (String)


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_modeString

How the threshold is applied to query results.

Returns:

  • (String)


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_thresholdFloat

The value at which the alert enters the WARNING state.

Returns:

  • (Float)


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