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_period ⇒ Integer

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

Returns:

  • (Integer)


177
178
179
180
181
182
183
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 177

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

#query ⇒ String

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)


177
178
179
180
181
182
183
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 177

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

#recovery_period ⇒ Integer

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

Returns:

  • (Integer)


177
178
179
180
181
182
183
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 177

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