Class: Aws::CloudWatch::Types::AlarmPromQLCriteria

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb

Overview

Contains the configuration that determines how a PromQL alarm evaluates its contributors, including the query to run and the durations that define when contributors transition between states.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#pending_periodInteger

The duration, in seconds, that a contributor must be continuously breaching before it transitions to the ALARM state.

Returns:

  • (Integer)


160
161
162
163
164
165
166
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 160

class AlarmPromQLCriteria < Struct.new(
  :query,
  :pending_period,
  :recovery_period)
  SENSITIVE = []
  include Aws::Structure
end

#queryString

The PromQL query that the alarm evaluates. The query must return a result of vector type. Each entry in the vector result represents an alarm contributor.

Returns:

  • (String)


160
161
162
163
164
165
166
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 160

class AlarmPromQLCriteria < Struct.new(
  :query,
  :pending_period,
  :recovery_period)
  SENSITIVE = []
  include Aws::Structure
end

#recovery_periodInteger

The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the OK state.

Returns:

  • (Integer)


160
161
162
163
164
165
166
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 160

class AlarmPromQLCriteria < Struct.new(
  :query,
  :pending_period,
  :recovery_period)
  SENSITIVE = []
  include Aws::Structure
end